summaryrefslogtreecommitdiff
path: root/quotaio.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2001-04-05 08:26:56 +0000
committerjkar8572 <jkar8572>2001-04-05 08:26:56 +0000
commit7ec003b82d056fa150924f15da0d0d0e353cf041 (patch)
treea5bf9ec4709b69031b3c9977893b45cbbfa3de8e /quotaio.c
parent62e95f2d20146d266719badea3074a2416b71664 (diff)
downloadlinuxquota-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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/quotaio.c b/quotaio.c
index f790887..f1b36c7 100644
--- a/quotaio.c
+++ b/quotaio.c
@@ -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 = &quotafile_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;
}
}