From 84ec12aa207cb8d5323b63847bfd8115881f2886 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Wed, 2 May 2001 09:32:22 +0000 Subject: Added mntopt.h to dependencies in Makefile.in. Fixed MNTTYPE_REISER to proper string. sprintf->snprintf Merged Marco's patch with errstr(), configurable BSD behaviour Fixed bug in quota detection IO code now opens file only RO if possible. IO code now doesn't open file if not required. Fixed bug in quotaon. Updated all manpages. --- quotaio.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'quotaio.h') diff --git a/quotaio.h b/quotaio.h index edfbda3..acd86c1 100644 --- a/quotaio.h +++ b/quotaio.h @@ -62,6 +62,7 @@ #define IOFL_QUOTAON 0x01 /* Is quota enabled in kernel? */ #define IOFL_INFODIRTY 0x02 /* Did info change? */ +#define IOFL_RO 0x04 /* Just RO access? */ struct quotafile_ops; @@ -131,12 +132,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) /* Detect format of given quotafile */ int detect_qf_format(int fd, int type); /* Check quota format used on specified medium and initialize it */ -struct quota_handle *init_io(struct mntent *mnt, int type, int fmt); +struct quota_handle *init_io(struct mntent *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); -- cgit v1.2.3