Re: [PATCH 01/20] sysfs: Implement sysfs_rename_link

Greg KH
2009-05-28T01:37:59Z

On Thu, May 28, 2009 at 02:30:15AM +0200, Kay Sievers wrote:
> On Thu, May 28, 2009 at 02:14, Greg KH <greg@kroah.com> wrote:
> >
> > So, there's been a lot of talk in this thread.
> >
> > Eric, do you have an updated set of patches for me to try out?
>
> I think we should get a version of the patch in that removes all files
> in a directory on cleanup, but warn if a subdirectory is still there.
> James has a patch to fix the one issue we've seen so far with existing
> child directories.
>
> After that, we should work on fixing the users that leave files
> behind, and can possibly stop cleaning up files, if we want to.

That would be good.

But note that we always "allowed" such things to happen, so odds are
there are lots of places in the kernel that took advantage of this. If
we make it a rule, people will complain.

> > Or are there still problems, like the "fry the ext3 boot partition" that
> > Kay found?
>
> That is unrelated to Eric's patches, They just added the dump, which I
> tried to trigger. It's not entirely clear what caused the filesytem
> damage, but I was definitely able to reproduce the unclean shutdown
> without any of Eric's sysfs patches.

Ok.

But I think Eric had some updates to some of the patches along the way,
so a whole new respin would be good to ensure I get the correct ones.

Eric?

thanks,

greg k-h