lkml.org 
[lkml]   [2009]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sysfs: fix hardlink count on device_move
Greg KH wrote:
> On Tue, Jul 14, 2009 at 05:56:15PM +0200, Peter Oberparleiter wrote:
>> From: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
>>
>> Update directory hardlink count when moving kobjects to a new parent.
>> Fixes the following problem which occurs when several devices are
>> moved to the same parent and then unregistered:
>>
>>> ls -laF /sys/devices/css0/defunct/
>>> total 0
>>> drwxr-xr-x 4294967295 root root 0 2009-07-14 17:02 ./
>>> drwxr-xr-x 114 root root 0 2009-07-14 17:02 ../
>>> drwxr-xr-x 2 root root 0 2009-07-14 17:01 power/
>>> -rw-r--r-- 1 root root 4096 2009-07-14 17:01 uevent
>> Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
>
> Thanks for the patch.
>
> Is this something new in 2.6.31-rc, or does it also show up in .30
> and/or .27?

This is an old problem that existed since the introduction of
sysfs_move_dir() in 2.6.20.



\
 
 \ /
  Last update: 2009-07-15 11:21    [W:0.062 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site