Skip to content

Commit

Permalink
1726 Removal of pyzfs broke delegation for volumes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alhazred committed Nov 28, 2011
1 parent 26f3cdf commit a640714
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions usr/src/cmd/zfs/zfs_main.c
Expand Up @@ -4936,9 +4936,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);
}
Expand All @@ -4948,7 +4948,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;
}

Expand Down

0 comments on commit a640714

Please sign in to comment.