Re: minor patch for 2.1.108 fs/dcache.c

Ion Badulescu (ionut@moisil.cs.columbia.edu)
Sun, 12 Jul 1998 18:02:27 -0400


On Fri, 10 Jul 1998 12:32:37 -0400, Bill Hawes wrote:

> 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