#117 qouta: option "-f filesystem" still checks other filesystems

None
open
Jan Kara
None
5
2014-09-11
2014-06-13
Michael Fink
No

Hello,

On a system with several filesystems mounted, if you do "quota -f filesystem", the quota command will still access the other mountpoints. If any of these resides on an NFS server that hangs, the quota command will hang. Despite the warning that "-l" is ignored when using "-f", option "-l" is a workaround if "filesystem" is local.

To correct this behaviour, option "-f" should disable looping over all mount points.

How to reproduce:

On a system that has several filesystems mounted

strace -f -o quota.strace.out quota -f filesystem
grep statfs quota.strace.out

kind regards, Michael Fink

Discussion

  • Jan Kara
    Jan Kara
    2014-09-11

    I agree quota(1) (and actually any other utility from quota-tools) will stat all mountpoints. This is because we first cache contents of /etc/mtab and then use this cache when processing dirs / devices passed as arguments. I'll think if we could somehow improve it to help your case but it isn't trivial.

     


Anonymous


Cancel   Add attachments