mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
Illumos #1726: Removal of pyzfs broke delegation for volumes
Reviewed by: Andrew Stormont <andyjstormont@googlemail.com> Reviewed by: Garrett D'Amore <garrett@nexenta.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Albert Lee <trisk@nexenta.com> Approved by: Garrett D'Amore <garrett@nexenta.com> References: https://www.illumos.org/issues/1726 Ported by: Martin Matuska <martin@matuska.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
79e722432f
commit
684e8c0643
@ -4972,9 +4972,9 @@ zfs_do_allow_unallow_impl(int argc, char **argv, boolean_t un)
|
||||
parse_allow_args(argc, argv, un, &opts);
|
||||
|
||||
/* try to open the dataset */
|
||||
if ((zhp = zfs_open(g_zfs, opts.dataset, ZFS_TYPE_FILESYSTEM))
|
||||
== NULL) {
|
||||
(void) fprintf(stderr, "Failed to open Dataset *%s*\n",
|
||||
if ((zhp = zfs_open(g_zfs, opts.dataset, ZFS_TYPE_FILESYSTEM |
|
||||
ZFS_TYPE_VOLUME)) == NULL) {
|
||||
(void) fprintf(stderr, "Failed to open dataset: %s\n",
|
||||
opts.dataset);
|
||||
return (-1);
|
||||
}
|
||||
@ -4984,7 +4984,7 @@ zfs_do_allow_unallow_impl(int argc, char **argv, boolean_t un)
|
||||
|
||||
fs_perm_set_init(&fs_perm_set);
|
||||
if (parse_fs_perm_set(&fs_perm_set, perm_nvl) != 0) {
|
||||
(void) fprintf(stderr, "Failed to parse fsacl permissionsn");
|
||||
(void) fprintf(stderr, "Failed to parse fsacl permissions\n");
|
||||
goto cleanup1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user