Lines Matching defs:zfs
26 """This module implements the "zfs allow" and "zfs unallow" subcommands.
27 The only public interface is the zfs.allow.do_allow() function."""
29 import zfs.util
30 import zfs.dataset
37 _ = zfs.util._
44 __repr__ = zfs.util.default_repr
48 from zfs.ioctl.get_fsacl()."""
138 # perms is not set if we are doing a "zfs unallow <who> <fs>" to
222 diff=_("Allows lookup of paths within a dataset,\n\t\t\t\tgiven an object number. Ordinary users need this\n\t\t\t\tin order to use zfs diff"),
250 return zfs.dataset.getpropobj(permname).name
252 raise zfs.util.ZFSError(errno.EINVAL, permname,
267 for (name, prop) in sorted(zfs.dataset.proptable.iteritems()):
272 """Implements the "zfs allow" and "zfs unallow" subcommands."""
280 parser.exit("zfs: error: " + msg)
302 parser = optparse.OptionParser(usage=u, prog="zfs")
325 # hack to make "zfs allow -h" work
327 ds = zfs.dataset.Dataset(sys.argv[2], snaps=False)
388 ds = zfs.dataset.Dataset(fsname, snaps=False)