[Wilfried.Weissmann@gmx.at: Bug#277534: hal: harddisk partition scan does not check harddisk size]

Kay Sievers kay.sievers at vrfy.org
Fri Oct 22 12:52:21 PDT 2004


On Fri, 2004-10-22 at 15:16 -0400, David Zeuthen wrote:
> > Do I get this right? The kernel creates devices for your disk, which are
> > not usable? Also the sysfs repreentation is invalid then? Then the
> > kernel should be fixed, right?
> > 
> 
> No, I don't think the kernel is at fault here. Look at software raid, I
> can create /dev/md0 built from /dev/sda1 and /dev/sdb1

But sda1 + sdb1 are completely readable and also unmountable! We have
devices here with wrong in-kernel representation, that's why we issue an
(from userspace legal) seek() and the kernel tries to access nonexistant
blocks and fails with that.

I still think that it is wrong that kernel creates _unreadable_
subdevices! Raid set members should not be parsed at all, it's the same
logic applied, as the kernel refuses to mount devices that are raid
members.

Kay

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list