[yast-commit] r52665 - in /trunk/storage: package/yast2-storage.changes storage/src/include/ep-loop-lib.ycp
Author: aschnell Date: Wed Oct 29 14:30:42 2008 New Revision: 52665 URL: http://svn.opensuse.org/viewcvs/yast?rev=52665&view=rev Log: - fixed crypt file setup (bnc #433484) Modified: trunk/storage/package/yast2-storage.changes trunk/storage/storage/src/include/ep-loop-lib.ycp Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=52665&r1=52664&r2=52665&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Wed Oct 29 14:30:42 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Oct 29 14:29:52 CET 2008 - aschnell@suse.de + +- fixed crypt file setup (bnc #433484) + +------------------------------------------------------------------- Tue Oct 28 20:14:59 CET 2008 - aschnell@suse.de - allow creation of partitions by providing cylinder start and Modified: trunk/storage/storage/src/include/ep-loop-lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-loop-lib.ycp?rev=52665&r1=52664&r2=52665&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-loop-lib.ycp (original) +++ trunk/storage/storage/src/include/ep-loop-lib.ycp Wed Oct 29 14:30:42 2008 @@ -13,28 +13,21 @@ map<string, any> data = $[ "new" : true, "create" : true ]; - data["device"] = Storage::GetLoopDevice(); - data["type"] = `loop; data["format"] = true; if (DlgCreateLoop(data)) { - Storage::UpdateLoop(data["device"]:"", data["fpath"]:"", - data["create_file"]:false, data["size_k"]:0); + string device = Storage::CreateLoop(data["fpath"]:"", data["create_file"]:false, + data["size_k"]:0, data["mount"]:""); + data["device"] = device; Storage::ChangeVolumeProperties(data); UpdateNavigationTree(nil); TreePanel::Create(); - UpdateTableFocus(data["device"]:"error"); + UpdateTableFocus(device); } - else - { - // TODO: This is ugly. Storage::GetLoopDevice creates a loop device which - // must be deleted if the user abort the creation dialog. - Storage::DeleteDevice("/dev/loop", data["device"]:""); - } } -- 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