[yast-commit] r60232 - in /trunk/storage/storage/src/include: custom_part_check_generated.ycp custom_part_dialogs.ycp ep-hd-lib.ycp ep-lib.ycp
![](https://seccdn.libravatar.org/avatar/ca8d90c49f67ad61282a8e30ff67a25e.jpg?s=120&d=mm&r=g)
Author: aschnell
Date: Tue Jan 5 16:02:38 2010
New Revision: 60232
URL: http://svn.opensuse.org/viewcvs/yast?rev=60232&view=rev
Log:
- removed obsolete bsd_label parameter
Modified:
trunk/storage/storage/src/include/custom_part_check_generated.ycp
trunk/storage/storage/src/include/custom_part_dialogs.ycp
trunk/storage/storage/src/include/ep-hd-lib.ycp
trunk/storage/storage/src/include/ep-lib.ycp
Modified: trunk/storage/storage/src/include/custom_part_check_generated.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custom_part_check_generated.ycp?rev=60232&r1=60231&r2=60232&view=diff
==============================================================================
--- trunk/storage/storage/src/include/custom_part_check_generated.ycp (original)
+++ trunk/storage/storage/src/include/custom_part_check_generated.ycp Tue Jan 5 16:02:38 2010
@@ -486,7 +486,7 @@
}
-define symbol check_devices_used( list<map> partitions, boolean not_cr )
+symbol check_devices_used(list<map> partitions, boolean not_cr)
{
symbol ret = `UB_NONE;
list<map> pl = filter( map p, partitions,
@@ -519,21 +519,8 @@
}
-
-define boolean check_device_edit( map curr_part, boolean bsd_label )
- ``{
- ///////////////////////////////////////////////////////
- // with a BSD-Disklabel partition 3 is always an additional entry
- // which describes the disk and should not be edited
-
- if( bsd_label && curr_part["type"]:`unknown==`primary &&
- curr_part["nr"]:0==3 )
- {
- // popup text
- Popup::Message(_("Partition 3 \"Entire Disk\" is not changeable"));
- return false;
- }
-
+boolean check_device_edit(map curr_part)
+ {
symbol used = check_devices_used( [ curr_part ], false );
if( used == `UB_MD)
@@ -564,25 +551,10 @@
return( ret );
}
-define boolean check_device_delete( map curr_part, boolean bsd_label,
- boolean installation, map disk )
- ``{
- string part_name = curr_part["device"]:"";
-
- if( bsd_label )
- {
- ///////////////////////////////////////////////////////
- // with BSD-Disklabel partition 3 is always an additionl entry,
- // which describes the disk and should not be edited
- if( bsd_label && curr_part["type"]:`unknown==`primary &&
- curr_part["nr"]:0==3 )
- {
- // popup text
- Popup::Message(_("Partition 3 \"Entire Disk\" is not changeable"));
- return false;
- }
- }
+boolean check_device_delete(map curr_part, boolean installation, map disk)
+ {
+ string part_name = curr_part["device"]:"";
symbol used = check_devices_used( [ curr_part ], false );
@@ -689,11 +661,11 @@
if( ret )
ret = Storage::CanDelete( curr_part, disk, true );
return ret;
- };
+ }
-define boolean check_extended_delete( map curr_disk, boolean installation )
- ``{
+boolean check_extended_delete( map curr_disk, boolean installation )
+ {
/////////////////////////////////////////////////
// filter delete partitions
list<map> partitions = curr_disk["partitions"]:[];
@@ -789,5 +761,5 @@
ret = Storage::CanDelete( extd, curr_disk, true );
}
return( ret );
- };
+ }
}
Modified: trunk/storage/storage/src/include/custom_part_dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custom_part_dialogs.ycp?rev=60232&r1=60231&r2=60232&view=diff
==============================================================================
--- trunk/storage/storage/src/include/custom_part_dialogs.ycp (original)
+++ trunk/storage/storage/src/include/custom_part_dialogs.ycp Tue Jan 5 16:02:38 2010
@@ -1407,9 +1407,8 @@
* Check if at least on partition is mounted.
* @return map targetMap
*/
-define boolean deleteAllDevPartitions( map
participants (1)
-
aschnell@svn.opensuse.org