]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336017,r338799
authorsef <sef@FreeBSD.org>
Sat, 29 Sep 2018 00:44:23 +0000 (00:44 +0000)
committersef <sef@FreeBSD.org>
Sat, 29 Sep 2018 00:44:23 +0000 (00:44 +0000)
commitd7f48a677bec97428aae1a4dcb951dcce59f822e
tree1b8295e331ca0cd612a9cb448d4cdff43519ca6e
parent2e48c5cb575793d82e0ebc64a3d9ccd0a45d021e
MFC r336017,r338799

r336017
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.)

r338799
Author: kib

Fix ZFS VFS op quotactl to follow busy protocol.

Approved by: mav
Sponsored by: iXsystems, inc
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