Re: [PATCH 2/4] btrfs: sysfs, add UUID/devinfo kobject

Anand Jain
2020-02-03T10:40:57Z

On 15/1/20 2:32 AM, David Sterba wrote:
> On Thu, Dec 05, 2019 at 07:27:04PM +0800, Anand Jain wrote:
>> Preparatory patch creates kobject /sys/fs/btrfs/UUID/devinfo to hold
>> btrfs_fs_devices::dev_state attribute.
>>
>> This is being added in the mount context, that means we don't see
>> UUID/devinfo before the mount (yet).
>>
>> Signed-off-by: Anand Jain <anand.jain@oracle.com>
>

> There's a report about duplicate directory created:
>
> btrfs/064
>
>
> [ 1782.480622] sysfs: cannot create duplicate filename '/fs/btrfs/3f26615b-afcd-4008-8aed-44e714be257c/devices/0'

Just for the clarity this patch did not cause this issue.

David,

The patches 1/4,2/4,3/4 in this series are cleanups and preparatory
which is missing in misc-next.

So the devid is being created under <UUID>/devices instead of
<UUID>/devinfo as planned.

I am sending the whole series again with the patch 4/4 taken from
misc-next, please help to integrate.

Thanks, Anand