> This has been on my TODO list for a while ... this patch implements a
> function is_root_busy() to test whether a filesystem can be unmounted
> without destroying its dcache structure. This will help make autofs
> considerably friendlier.
>
> The code is straightforward -- it uses the root dentry's child lists to
> look for any busy leaf nodes, and otherwise tests whether the number of
> top-level child dentries exceeds the root use count.
>
> I wasn't sure of the best way to integrate it into autofs, but Peter
> Anvin will know what to do.
It would be very nice to have this function accessible through an ioctl,
some other programs -- umount, amd -- could also benefit from it.
Ion
-- It is better to keep your mouth shut and be thought a fool, than to open it and remove all doubt.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html