]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: dasd partition detection
authorHorst Hummel <horst.hummel@de.ibm.com>
Wed, 8 Mar 2006 05:55:39 +0000 (21:55 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 8 Mar 2006 22:14:01 +0000 (14:14 -0800)
commit44a14c1188336b93af8036d48d73c5507e2a20fb
tree2cd4c048a95d49a532bd237388f2b50ceb55ceb6
parent05b6d5e366efd6636266898f0602a88a708ac6bd
[PATCH] s390: dasd partition detection

DASD allows to open a device as soon as gendisk is registered, which means the
device is a fake device (capacity=0) and we do know nothing about blocksize
and partitions at that point of time.  In case the device is opened by
someone, the bdev and inode creation is done with the fake device info and the
following partition detection code is just using the wrong data.

To avoid this modify the DASD state machine to make sure that the open is
rejected until the device analysis is either finished or an unformatted device
was detected.

Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_genhd.c
drivers/s390/block/dasd_int.h
drivers/s390/block/dasd_proc.c
fs/partitions/ibm.c