summaryrefslogtreecommitdiff
path: root/quota.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2005-10-25 13:01:14 +0000
committerjkar8572 <jkar8572>2005-10-25 13:01:14 +0000
commitd18a867ac9cdab3d3a6b176d242141be969351ec (patch)
treea3ec90d64fe7b50feb354f31d0380f90fced0690 /quota.c
parentb6d2587199b6d924511573719b513e278d3dad62 (diff)
downloadlinuxquota-d18a867ac9cdab3d3a6b176d242141be969351ec.tar.gz
Changed mountpoint scanning so that we don't even stat NFS mountpoints when
local-only flag was specified. Hence we don't block if NFS is down. (Jan Kara)
Diffstat (limited to 'quota.c')
-rw-r--r--quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quota.c b/quota.c
index c5e3f09..346cff9 100644
--- a/quota.c
+++ b/quota.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California. $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: quota.c,v 1.17 2005/09/13 15:54:01 jkar8572 Exp $"
+#ident "$Id: quota.c,v 1.18 2005/10/25 13:01:14 jkar8572 Exp $"
/*
* Disk quota reporting program.
@@ -189,7 +189,7 @@ int showquotas(int type, qid_t id)
time(&now);
id2name(id, type, name);
- handles = create_handle_list(0, NULL, type, fmt, IOI_READONLY | ((flags & FL_LOCALONLY) ? IOI_LOCALONLY : 0), ((flags & FL_NOAUTOFS) ? MS_NO_AUTOFS : 0));
+ handles = create_handle_list(0, NULL, type, fmt, IOI_READONLY, ((flags & FL_NOAUTOFS) ? MS_NO_AUTOFS : 0) | ((flags & FL_LOCALONLY) ? MS_LOCALONLY : 0));
qlist = getprivs(id, handles, !!(flags & FL_QUIETREFUSE));
over = 0;
for (q = qlist; q; q = q->dq_next) {