summaryrefslogtreecommitdiff
path: root/quotaio.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2011-11-17 00:02:59 +0100
committerJan Kara <jack@suse.cz>2011-11-17 00:02:59 +0100
commit40e09a3b49827699d770f8144f973d4928f248b2 (patch)
tree6a23009f53705cdce7b714ea0c3c9148e5ab9be6 /quotaio.h
parentb21068b188539573f39525c296202c071ad594fe (diff)
Add support for quotas on ext4 in system files
Teach quota tools to handle quotas in system files on ext4. For this to work, we slightly rework mount option parsing to allow distinguisting between ext4 with classical quota files and ext4 with quotas in system files. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'quotaio.h')
-rw-r--r--quotaio.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/quotaio.h b/quotaio.h
index 3cd33ba..2c373b2 100644
--- a/quotaio.h
+++ b/quotaio.h
@@ -40,6 +40,7 @@
#define QF_RPC 3 /* RPC should be used on given filesystem */
#define QF_XFS 4 /* XFS quota format */
#define QF_META 5 /* Quota files are hidden, we don't care about the format */
+#define QF_VFSUNKNOWN 6 /* Some VFS quotas, we didn't detect particular format yet */
static inline int is_tree_qfmt(int fmt)
{
@@ -164,11 +165,13 @@ static inline void mark_quotafile_info_dirty(struct quota_handle *h)
#define QIO_ENABLED(h) ((h)->qh_io_flags & IOFL_QUOTAON)
#define QIO_RO(h) ((h)->qh_io_flags & IOFL_RO)
+struct mount_entry;
+
/* Check quota format used on specified medium and initialize it */
-struct quota_handle *init_io(struct mntent *mnt, int type, int fmt, int flags);
+struct quota_handle *init_io(struct mount_entry *mnt, int type, int fmt, int flags);
/* Create new quotafile of specified format on given filesystem */
-struct quota_handle *new_io(struct mntent *mnt, int type, int fmt);
+struct quota_handle *new_io(struct mount_entry *mnt, int type, int fmt);
/* Close quotafile */
int end_io(struct quota_handle *h);