Re: [PATCH] Fix secondary search for freespace in extended partition.

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

 



Looks good.

Regards,

Hans


David Lehman wrote:
I think this should be new_part_type here too. more in general
allocatePartitions seems to mix and match part_type and new_part_type,
where it should use only one variable for these everywhere.

Right. We need two separate variables -- one to hold the type that
corresponds to the current chosen free region, and one to hold the type
that we are manipulating throughout the loop. New patch attached.

Dave

                                                   _part.req_size,
                                                   best_free=free,
                                                   boot=_part.req_bootable)
-            elif best:
-                if free != best:
-                    # now we know we are choosing a new free space,
-                    # so update the disk and part type
-                    log.debug("updating use_disk to %s (%s), type: %s"
-                                % (_disk, _disk.name, new_part_type))
-                    part_type = new_part_type
-                    use_disk = _disk
+
+            if best and free != best:
+                # now we know we are choosing a new free space,
+                # so update the disk and part type
+                log.debug("updating use_disk to %s (%s), type: %s"
+                            % (_disk, _disk.name, new_part_type))
+                part_type = new_part_type
+                use_disk = _disk
                 log.debug("new free: %s (%d-%d / %dMB)" % (best,
                                                            best.start,
                                                            best.end,
Regards,

Hans

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

------------------------------------------------------------------------

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

_______________________________________________
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