diff options
author | jkar8572 <jkar8572> | 2001-04-05 08:26:56 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-04-05 08:26:56 +0000 |
commit | 7ec003b82d056fa150924f15da0d0d0e353cf041 (patch) | |
tree | a5bf9ec4709b69031b3c9977893b45cbbfa3de8e /quotaio.c | |
parent | 62e95f2d20146d266719badea3074a2416b71664 (diff) | |
download | linuxquota-7ec003b82d056fa150924f15da0d0d0e353cf041.tar.gz |
Added EXT2DIRECT as configurable option.
Fixed bug in quotacheck -c option.
Fixed bug in RPC implementation.
Diffstat (limited to 'quotaio.c')
-rw-r--r-- | quotaio.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -85,7 +85,11 @@ struct quota_handle *init_io(struct mntent *mnt, int type, int fmt) #endif } - if (!strcmp(mnt->mnt_type, MNTTYPE_XFS)) { + if (!strcmp(mnt->mnt_type, MNTTYPE_XFS)) { /* XFS filesystem? */ + if (fmt != -1 && fmt != QF_XFS) { /* User wanted some other format? */ + fprintf(stderr, _("Only XFS quota format is allowed on XFS filesystem.\n")); + goto out_handle; + } h->qh_fd = -1; h->qh_fmt = QF_XFS; h->qh_ops = "afile_ops_xfs; @@ -122,9 +126,7 @@ struct quota_handle *init_io(struct mntent *mnt, int type, int fmt) goto out_lock; } if (fmt != -1 && h->qh_fmt != fmt) { - fprintf(stderr, - _ - ("Quotafile format detected differs from the specified one (or the one kernel uses on the file).\n")); + fprintf(stderr, _("Quotafile format detected differs from the specified one (or the one kernel uses on the file).\n")); goto out_handle; } } |