32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File '../../src/include/partitioning/ep-dm-lib.rb', line 32
def EpEditDmDevice(device)
if device == nil
Popup.Error(_("No DM device selected."))
return
end
target_map = Storage.GetTargetMap
data = Storage.GetPartition(target_map, device)
if Storage.IsUsedBy(data)
Popup.Error(
Builtins.sformat(
_(
"The DM %1 is in use. It cannot be\nedited. To edit %1, make sure it is not used."
),
device
)
)
return
end
if (
data_ref = arg_ref(data);
_DlgEditDmVolume_result = DlgEditDmVolume(data_ref);
data = data_ref.value;
_DlgEditDmVolume_result
)
Storage.ChangeVolumeProperties(data)
UpdateMainStatus()
UpdateNavigationTree(nil)
TreePanel.Create
UpdateTableFocus(device)
end
nil
end
|