diff options
author | mckusick <mckusick@FreeBSD.org> | 2009-02-14 08:08:08 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2009-02-14 08:08:08 +0000 |
commit | 46197420cc38a05e35d2d08681f4ea36c5ebe3b1 (patch) | |
tree | 21dd6dafff6c1a82110094ada3a3eb5fc9a062fe /lib/libutil/libutil.h | |
parent | 987cbdc1c9562a835426a263ddcb2c330666f50c (diff) | |
download | FreeBSD-src-46197420cc38a05e35d2d08681f4ea36c5ebe3b1.zip FreeBSD-src-46197420cc38a05e35d2d08681f4ea36c5ebe3b1.tar.gz |
Update the quotafile library to manage both active quotas via the
quotactl(2) interface and inactive quotas by accessing the quota
files directly.
Update the edquota program to use this new interface as proof of
concept.
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r-- | lib/libutil/libutil.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index b9aec78..afd5db6 100644 --- a/lib/libutil/libutil.h +++ b/lib/libutil/libutil.h @@ -143,12 +143,11 @@ int pidfile_remove(struct pidfh *pfh); #ifdef _UFS_UFS_QUOTA_H_ struct quotafile; struct fstab; -struct quotafile *quota_open(const char *); -struct quotafile *quota_create(const char *); +struct quotafile *quota_open(struct fstab *, int, int); void quota_close(struct quotafile *); int quota_read(struct quotafile *, struct dqblk *, int); -int quota_write(struct quotafile *, const struct dqblk *, int); -int hasquota(struct fstab *, int, char *, int); +int quota_write_limits(struct quotafile *, struct dqblk *, int); +int quota_write_usage(struct quotafile *, struct dqblk *, int); #endif __END_DECLS |