[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Use the per-disk flag to disable cylinder alignment for msdos disklabels.



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

Ack.

On Fri, 18 Dec 2009, David Lehman wrote:

---
storage/partitioning.py |    5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 5d176c4..97abf83 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -776,8 +776,9 @@ def doPartitioning(storage, exclusiveDisks=None):
        bootDev.req_bootable = True

    # turn off cylinder alignment
-    if parted.isAlignToCylinders():
-        parted.toggleAlignToCylinders()
+    for partedDisk in [d.format.partedDisk for d in disks]:
+        if partedDisk.isFlagAvailable(parted.DISK_CYLINDER_ALIGNMENT):
+            partedDisk.unsetFlag(parted.DISK_CYLINDER_ALIGNMENT)

    removeNewPartitions(disks, partitions)
    free = getFreeRegions(disks)


- -- David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iEYEARECAAYFAksr8y0ACgkQ5hsjjIy1Vkm8rACeO3JehAkO9Ita3YYeL/41XNCR
ABUAn2o9hb7QfqI47OAPj3W8CaEiO3ue
=Vgeg
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]