]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This exposes ZFS user and group quotas via the normal
authorSean Eric Fagan <sef@FreeBSD.org>
Thu, 5 Jul 2018 22:56:13 +0000 (22:56 +0000)
committerSean Eric Fagan <sef@FreeBSD.org>
Thu, 5 Jul 2018 22:56:13 +0000 (22:56 +0000)
commitaad5531e716d37f9e0b0a0ee50499a33e63a1337
treeb0aaf50d11c4211bed716d0aab8007b72a631f9f
parent3655135d3f59a9ae2a4464203efe9e7680ac4dd8
This exposes ZFS user and group quotas via the normal
quatactl(2) mechanism.  (Read-only at this point, however.)
In particular, this is to allow rpc.rquotad query quotas
for NFS mounts, allowing users to see their quotas on the
hosts using the datasets.

The changes specifically:

* Add new RPC entry points for querying quotas.
* Changes the library routines to allow non-UFS quotas.
* Changes rquotad to check for quotas on mounted filesystems,
rather than being limited to entries in /etc/fstab
* Lastly, adds a VFS entry-point for ZFS to query quotas.

Note that this makes one unavoidable behavioural change: if quotas
are enabled, then they can be queried, as opposed to the current
method of checking for quotas being specified in fstab.  (With
ZFS, if there are user or group quotas, they're used, always.)

Reviewed by: delphij, mav
Approved by: mav
Sponsored by: iXsystems Inc
Differential Revision: https://reviews.freebsd.org/D15886
include/rpcsvc/rquota.x
lib/libutil/quotafile.c
libexec/rpc.rquotad/rquotad.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
usr.bin/quota/quota.c