Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   PATCH: Make PartitionDevice handle both normal and dmraid partitions (http://www.linux-archive.org/centos/265562-patch-make-partitiondevice-handle-both-normal-dmraid-partitions.html)

Hans de Goede 03-18-2009 01:55 PM

PATCH: Make PartitionDevice handle both normal and dmraid partitions
 
Chris Lumens wrote:

The way we were handling updateSysfsPath in DMRaidPartitionDevice was very
wrong, you cannot call a method of an other class on self, when you do
not inherit from that class. Given the minimal difference between
normal and dmraid partitions (only path and sysfsPath differ) and all the
pain having multiple partition classes causes, this patch makes PartitionDevice
handle both normal and dmraid partitions, and gets rid of the whole
partition factory thing.


It's probably worth running this one by dlehman before committing, as it
seems to be a pretty big change to me.



Erm, too late. It is less invasive then it looks and it has been tested with
both a normal disk and a dmraid set. If it screws things up we can always
revert it.

Regards,

Hans

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


All times are GMT. The time now is 12:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.