On 2013-03-29, Laurent Bercot <ska-dietl...@skarnet.org> wrote: >> 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.
If you want something that's atomic, then I think 'umount' is your only option. If it fails, the fielsystem was busy. If it succeeds, then it wasn't busy and is now unmounted. -- Grant Edwards grant.b.edwards Yow! I'm young ... I'm at HEALTHY ... I can HIKE gmail.com THRU CAPT GROGAN'S LUMBAR REGIONS! _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox