diff options
author | jkar8572 <jkar8572> | 2002-04-26 11:59:19 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2002-04-26 11:59:19 +0000 |
commit | 1cb4d5ce16afa8a908371c61146eacc7f3d60e55 (patch) | |
tree | 381ccd71e1d26dddd0f6d6acfe7c9afb9d8f36b6 /quotacheck.c | |
parent | c4eabdfcb0038df34ac842279cd74f22b9aa257d (diff) |
* fixes in manpages (Arkadiusz Miskiewicz)
* fixed detection of libwrap in configure (Arkadiusz Miskiewicz)
* added forgotten ROOTDIR to path to gettext catalogs (Arkadiusz Miskiewicz)
* quotacheck uses newest format supported by kernel when creating new quota files (Jan Kara)
* fixed bug in IO initialization when -F xfs was given (Jan Kara)
Diffstat (limited to 'quotacheck.c')
-rw-r--r-- | quotacheck.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/quotacheck.c b/quotacheck.c index d5cef50..e4586ed 100644 --- a/quotacheck.c +++ b/quotacheck.c @@ -8,7 +8,7 @@ * New quota format implementation - Jan Kara <jack@suse.cz> - Sponsored by SuSE CR */ -#ident "$Id: quotacheck.c,v 1.27 2002/03/27 16:21:26 jkar8572 Exp $" +#ident "$Id: quotacheck.c,v 1.28 2002/04/26 11:59:19 jkar8572 Exp $" #include <dirent.h> #include <stdio.h> @@ -841,7 +841,11 @@ static int detect_filename_format(struct mntent *mnt, int type) if (!stat(namebuf, &statbuf)) return QF_VFSOLD; /* Old quota files don't exist, just create newest quotafile available */ - return QF_VFSV0; + if (kernel_formats & (1 << QF_VFSV0)) + return QF_VFSV0; + if (kernel_formats & (1 << QF_VFSOLD)) + return QF_VFSOLD; + return -1; } static void check_all(void) |