summaryrefslogtreecommitdiffstats
path: root/lib/libutil/quotafile.3
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2009-10-20 05:37:54 +0000
committermckusick <mckusick@FreeBSD.org>2009-10-20 05:37:54 +0000
commit964d09e0daea58d6f551b3f7dadc4d37efd2e70d (patch)
tree6b81c3a992a5d8314ac80c4f40d014fd587a60c2 /lib/libutil/quotafile.3
parent0541f56541d9dcea9220421c4e7b5d348af5e15c (diff)
downloadFreeBSD-src-964d09e0daea58d6f551b3f7dadc4d37efd2e70d.zip
FreeBSD-src-964d09e0daea58d6f551b3f7dadc4d37efd2e70d.tar.gz
Add quota_maxid which returns the maximum user (or group) identifier
in an associated quotafile. Needed by repquota. Bug fix in quota_read.
Diffstat (limited to 'lib/libutil/quotafile.3')
-rw-r--r--lib/libutil/quotafile.314
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libutil/quotafile.3 b/lib/libutil/quotafile.3
index 4762bf9..d0c27d7 100644
--- a/lib/libutil/quotafile.3
+++ b/lib/libutil/quotafile.3
@@ -32,6 +32,7 @@
.Nm quota_open
.Nm quota_fsname
.Nm quota_qfname
+.Nm quota_maxid
.Nm quota_check_path
.Nm quota_read
.Nm quota_write_limits
@@ -44,8 +45,9 @@
.In sys/param.h
.In sys/mount.h
.In ufs/ufs/quota.h
-.In libutil.h
+.In fcntl.h
.In fstab.h
+.In libutil.h
.Ft "struct quotafile *"
.Fn quota_open "struct fstab *fs" "int quotatype" "int openflags"
.Ft "const char *"
@@ -53,6 +55,8 @@
.Ft "const char *"
.Fn quota_qfname "const struct quotafile *qf"
.Ft int
+.Fn quota_maxid "const struct quotafile *qf"
+.Ft int
.Fn quota_check_path "const struct quotafile *qf" "const char *path"
.Ft int
.Fn quota_read "struct quotafile *qf" "struct dqblk *dqb" "int id"
@@ -116,6 +120,14 @@ argument.
Note that this may be a symbolic link to the actual file.
.Pp
The
+.Fn quota_maxid
+function returns the maximum user (or group)
+.Va id
+contained in the quota file associated with its
+.Va qf
+argument.
+.Pp
+The
.Fn quota_check_path
function checks if the specified path is within the filesystem that
corresponds to its
OpenPOWER on IntegriCloud