summaryrefslogtreecommitdiff
path: root/quotasys.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 /quotasys.c
parent62e95f2d20146d266719badea3074a2416b71664 (diff)
Added EXT2DIRECT as configurable option.
Fixed bug in quotacheck -c option. Fixed bug in RPC implementation.
Diffstat (limited to 'quotasys.c')
-rw-r--r--quotasys.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/quotasys.c b/quotasys.c
index 224ac95..ab05d50 100644
--- a/quotasys.c
+++ b/quotasys.c
@@ -34,7 +34,8 @@
(!strcmp(type, MNTTYPE_UFS)) || \
(!strcmp(type, MNTTYPE_UDF)) || \
(!strcmp(type, MNTTYPE_REISER)) || \
-(!strcmp(type, MNTTYPE_XFS)))
+(!strcmp(type, MNTTYPE_XFS)) || \
+(!strcmp(type, MNTTYPE_NFS)))
static char extensions[MAXQUOTAS + 2][20] = INITQFNAMES;
static char *basenames[] = INITQFBASENAMES;
@@ -253,6 +254,8 @@ int hasquota(struct mntent *mnt, int type)
if (!strcmp(mnt->mnt_type, MNTTYPE_XFS))
return hasxfsquota(mnt, type);
+ if (!strcmp(mnt->mnt_type, MNTTYPE_NFS)) /* NFS always has quota or better there is no good way how to detect it */
+ return 1;
if ((type == USRQUOTA) && (option = hasmntopt(mnt, MNTOPT_USRQUOTA)))
return 1;
@@ -366,12 +369,12 @@ struct quota_handle **create_handle_list(int count, char **mntpoints, int type,
continue;
gotmnt++;
}
- else if (!local_only) { /* Use NFS? */
+ else if (!local_only && (fmt == -1 || fmt == QF_RPC)) { /* Use NFS? */
#ifdef RPC
if (gotmnt == MAXMNTPOINTS)
die(3, _("Too many mountpoints. Please report to: %s\n"),
MY_EMAIL);
- if (!(hlist[gotmnt] = init_io(mnt, type, 0)))
+ if (!(hlist[gotmnt] = init_io(mnt, type, fmt)))
continue;
gotmnt++;
#endif