Off-Topic Question: Check if filesystem is in use

Alexander Kriegisch Alexander at Kriegisch.name
Fri Mar 29 14:38:52 UTC 2013


Laurent is right. BTW, I was not suggesting lsof was efficient. I just trew it into the discusssion because sometimes it helped me on my home router.



Am 29.03.2013 um 14:32 schrieb Laurent Bercot <ska-dietlibc at skarnet.org>:

>> 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
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list