[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080824110326.GO28946@ZenIV.linux.org.uk>
Date: Sun, 24 Aug 2008 12:03:26 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Jan Harkes <jaharkes@...cmu.edu>, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, bfields@...ldses.org
Subject: Re: [RFC] readdir mess
On Sun, Aug 24, 2008 at 11:10:14AM +0100, Al Viro wrote:
> I agree that such transition plan makes sense, but that'll take more
> preliminary work than in your patch; there are other vfs_readdir() and
> ->readdir() callers, not just the obvious syscall ones.
BTW, nfsd4_list_rec_dir() is FUBAR. Its users, actually - they try to use it
for lovely things like kernel-side rm -rf /var/lib/nfs/v4recovery/* and
screw up in rather amusing ways.. I'm not even talking about the effects
of OOM (dentry leak); if you rename something away from that directory,
you'll get vfs_rmdir(dir, dentry) with dentry not being a child of dir,
which means deadlock if you are lucky and underlying fs corruption if you
are not...
I really wonder WTF is that doing in the kernel, anyway. Looks like an
obvious candidate for userland helper...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists