From 5f14352e8b6615aae659a9fb80c9c9f1875f4ca9 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Sat, 14 Feb 2009 08:08:08 +0000 Subject: 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. --- libutil/libutil.h | 7 +++---- 1 file 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 -- cgit v1.2.3-56-ge451