diff options
author | jkar8572 <jkar8572> | 2001-05-02 09:32:22 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-05-02 09:32:22 +0000 |
commit | 84ec12aa207cb8d5323b63847bfd8115881f2886 (patch) | |
tree | 9533951fedda68167081028741a9ec3fd8ad547b /quotaio.h | |
parent | 9c4a512419c660c0513db48e038169167e3e7d25 (diff) |
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.
Diffstat (limited to 'quotaio.h')
-rw-r--r-- | quotaio.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |