]> git.proxmox.com Git - mirror_zfs.git/commitdiff
zfs allow refreservation needed for zfs create -V
authorRichard Laager <rlaager@wiktel.com>
Tue, 16 Apr 2019 17:12:08 +0000 (12:12 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Apr 2019 17:12:08 +0000 (10:12 -0700)
When creating a non-sparse volume, zfs create sets a refreservation.
Accordingly, one needs the "refreservation" ability in addition to the
"create" ability in order to create a non-sparse volume.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reported-by: github.com/homerlinux
Reported-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes #8531
Closes #8624

man/man8/zfs.8

index eaa98212f18cdcf0296b284d8f42f497d0d3776e..36ab9353fa74b7df0e4df50338c9e14c4d8a2e4d 100644 (file)
@@ -4177,7 +4177,9 @@ allow            subcommand     Must also have the permission that is
                                 being allowed
 clone            subcommand     Must also have the 'create' ability and
                                 'mount' ability in the origin file system
                                 being allowed
 clone            subcommand     Must also have the 'create' ability and
                                 'mount' ability in the origin file system
-create           subcommand     Must also have the 'mount' ability
+create           subcommand     Must also have the 'mount' ability.
+                                Must also have the 'refreservation' ability to
+                                create a non-sparse volume.
 destroy          subcommand     Must also have the 'mount' ability
 diff             subcommand     Allows lookup of paths within a dataset
                                 given an object number, and the ability
 destroy          subcommand     Must also have the 'mount' ability
 diff             subcommand     Allows lookup of paths within a dataset
                                 given an object number, and the ability