From d18a867ac9cdab3d3a6b176d242141be969351ec Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Tue, 25 Oct 2005 13:01:14 +0000 Subject: 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) --- quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'quota.c') 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) { -- cgit v1.2.1