[yast-commit] r52388 - in /trunk/storage: package/yast2-storage.changes storage/src/include/ep-hd-lib.ycp
Author: aschnell Date: Tue Oct 21 13:52:39 2008 New Revision: 52388 URL: http://svn.opensuse.org/viewcvs/yast?rev=52388&view=rev Log: - disallow editing of extended partitions Modified: trunk/storage/package/yast2-storage.changes trunk/storage/storage/src/include/ep-hd-lib.ycp Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=52388&r1=52387&r2=52388&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Tue Oct 21 13:52:39 2008 @@ -8,6 +8,7 @@ Mon Oct 20 12:36:48 CEST 2008 - aschnell@suse.de - avoid clearing file system label (bnc #436360) +- disallow editing of extended partitions - 2.17.41 ------------------------------------------------------------------- Modified: trunk/storage/storage/src/include/ep-hd-lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd-lib.ycp?rev=52388&r1=52387&r2=52388&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-hd-lib.ycp (original) +++ trunk/storage/storage/src/include/ep-hd-lib.ycp Tue Oct 21 13:52:39 2008 @@ -221,6 +221,16 @@ return; } + if (data["type"]:`primary == `extended) + { + // error popup text + Popup::Error(_("An extended partition cannot be changed. +Delete this partition then create a new one using +the new parameters. +All data on this partition will be lost if you delete it.")); + return; + } + if (DlgEditPartition(data)) { Storage::ChangeVolumeProperties(data); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org