diff options
author | jkar8572 <jkar8572> | 2005-10-25 13:01:14 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2005-10-25 13:01:14 +0000 |
commit | d18a867ac9cdab3d3a6b176d242141be969351ec (patch) | |
tree | a3ec90d64fe7b50feb354f31d0380f90fced0690 /quota.c | |
parent | b6d2587199b6d924511573719b513e278d3dad62 (diff) | |
download | linuxquota-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |