Hannes Reinecke | 1 Sep 2006 15:50
Picon

[PATCH] Wrong size information for devices with disabled read access

Hi James,

when accessing a device with disabled read access the capacity is set
somewhat arbitrary to 1GB. This makes it quite impossible for userspace
applications to detect this as an invalid capacity.
And it is inconsistent with other error conditions, where the capacity
is in fact set to 0.

Please apply.

Cheers,

Hannes
--

-- 
Dr. Hannes Reinecke			hare <at> suse.de
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
Wrong size information for devices with disabled read access

When accessing a device with disabled read access the capacity is set
randomly to 1GB. This makes it impossible to userspace tools to detect
invalid device capacities.

Signed-off-by: Mike Anderson <andmike <at> us.ibm.com>
Acked-by: Chris Mason <mason <at> suse.com>
Signed-off-by: Hannes Reinecke <hare <at> suse.de>

(Continue reading)


Gmane