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

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

 



-----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@xxxxxxxxxx>
Red Hat / Honolulu, HI

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

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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux