[parted-devel] [PATCH] libparted: Fixed bug in initializing and re-reading partition table of FBA devices

Phillip Susi psusi at ubuntu.com
Fri Oct 25 20:04:46 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/25/2013 1:45 AM, Nageswara R Sastry wrote:
> 
> Subject: [PATCH] libparted: Fixed bug in initializing and
> re-reading partition table of FBA devices
> 
> From: Nageswara R Sastry <rnsastry at linux.vnet.ibm.com>
> 
> Fixed Block Access (FBA) DASDs are mainframe-specific disk devices 
> that are layred out as a sequence of 512-byte sectors. In contrast 
> to ECKD DASDs, these disks do not require formatting and resemble 
> the LBA layout of non-mainframe disks. Despite this resemblance, 
> the Linux kernel applies special handling during partition
> detection for FBA DASDs, resulting in a single, immutable partition
> being reported.

Are you saying that this kind of disk can not really be partitioned (
since the kernel always reports exactly one partition for the whole
disk )?  If so then it does not make much sense to run parted in the
first place.

It looks like your patch asks the kernel to throw out the partition
table that parted has just installed with BLKPG and go back to that
single dummy partition.

Also if you are going to retry the ioctl a few times, you should have
a small delay between each attempt.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSas7eAAoJEJrBOlT6nu75KwoH/Rf4ewTpJ35ZtSpC1xOJRFjK
rekn2nPmIcpVrE1nFhb0SGLFhdX82tZvRqud3bTbvV3bOsxXrfyhYfPkhs5i9KIa
PrM1QffqqfVIx8Pps3MweB1/cDISl2Chd9JzE9MHU8lQTmCTvr8R7w9ieklLbU0P
YlINPwIBqlE9yBDubwsY2sAyXW+fih5IhUd7oc7mCp2ZvJzkLWrI7FSpUSaWuF+8
53QalwUe6wABN3JvC0ROBsUP4PByIAUupKYc3reb28n2p/NR3yMEmZu+GY18AoX7
UsaC4iWglSAC+adFM6Pnw4bGKsKB7uG0F1vOM8bt7ToFfYkmiKJh4oB5T2RFY4Q=
=GztR
-----END PGP SIGNATURE-----



More information about the parted-devel mailing list