Off-Topic Question: Check if filesystem is in use

Laurent Bercot ska-dietlibc at skarnet.org
Fri Mar 29 13:32:55 UTC 2013


> Maybe you will find lsof helpful, e.g.
> 
> lsof +D /my/mountpoint

 lsof, as fuser, are /proc-scanning tools. Scanning /proc to then grep
the output is inefficient, and also non-atomic. I think Harald was
looking for an operation that did not involve scanning.

-- 
 Laurent


More information about the busybox mailing list