summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2009-02-14 08:08:08 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2009-02-14 08:08:08 +0000
commit5f14352e8b6615aae659a9fb80c9c9f1875f4ca9 (patch)
tree177332a180b4c9c263a2ca72feea8342d6c2ce23
parent5fcae39090d19c708c6b75e5d245efd1663d0215 (diff)
downloadpw-darwin-5f14352e8b6615aae659a9fb80c9c9f1875f4ca9.tar.gz
pw-darwin-5f14352e8b6615aae659a9fb80c9c9f1875f4ca9.tar.zst
pw-darwin-5f14352e8b6615aae659a9fb80c9c9f1875f4ca9.zip
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.
-rw-r--r--libutil/libutil.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h
index b9aec78..afd5db6 100644
--- a/libutil/libutil.h
+++ b/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