[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D2F110E.3010401@redhat.com>
Date: Thu, 13 Jan 2011 15:49:50 +0100
From: Milan Broz <mbroz@...hat.com>
To: Tejun Heo <tj@...nel.org>
CC: Karel Zak <kzak@...hat.com>,
device-mapper development <dm-devel@...hat.com>,
"Jun'ichi Nomura" <j-nomura@...jp.nec.com>,
Valdis.Kletnieks@...edu, linux-kernel@...r.kernel.org,
linux-raid@...r.kernel.org,
Alexander Viro <viro@...iv.linux.org.uk>,
linux-fsdevel@...r.kernel.org, Kay Sievers <kay.sievers@...y.org>
Subject: Re: [dm-devel] linux-next - WARNING: at fs/block_dev.c:824 bd_link_disk_holder+0x92/0x1ac()
On 01/13/2011 03:30 PM, Tejun Heo wrote:
Hi,
>> Anyway, it is /sys/block - so it represents block devices.
>>
>> If btrfs internally creates some virtual _block_ device for its pool, it should
>> present it here too with slaves/holders. If not, why it should create any links there?
>
> Yeah, that's the most bothering part for me. The biggest customers of
> bd_claim are filesystems and all these custom symlinkeries don't do
> nothing for them. It just doesn't make a whole lot of sense to me.
Well, then it is not optimal for fs and should it be separated?
There is also /sys/fs now...
I think represent dependences of block devices in some generic (and exactly defined)
way is useful. So if there is something missing, lets define it properly.
The whole idea behind lsblk was practical: we responded many questions why
"device is busy" and what keeps it open in stacked subsystem.
Just try fdisk, mdadm, dmsetup table, losetup -a, kpartx, cryptsetup, etc ...
So listing block device tree using ONE interface (sysfs) to check and display
device tree for ALL subsystems seems to be good idea for me.
In this exactly defined case.
I am not saying that symlinks are perfect, just that generic interface here
is not superfluous.
Thanks,
Milan
--
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