Re: [PATCH] sysfs: Optionally count subdirectories to support buggy applications

From: Linus Torvalds
Date: Mon Mar 05 2012 - 11:47:46 EST


On Mon, Mar 5, 2012 at 8:09 AM, Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> I don't remember.  I thought there was a proposed patch for this issue
> from Eric, but I don't see it in my queue anywhere.

That patch was an abortion. Adding a config option for behavior like
this is totally bogus, and the only reason for that config option was
that sysfs did silly things.

It's only in -next, though, I was assuming that the whole "Kill nlink
counting" commit never makes it to me. Because I won't take it.

I outlined how the counting could easily be done without actually
having to maintain an explicit count in the sysfs.

Or we should just keep doing the counting.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/