Skip to content

Commit

Permalink
don't allow to create a partition table on LDL formatted DASD
Browse files Browse the repository at this point in the history
  • Loading branch information
gabi2 committed Apr 19, 2016
1 parent a1802eb commit 7238a83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/include/partitioning/ep-hd-lib.rb
Expand Up @@ -46,6 +46,12 @@ def EpCreatePartitionTable(disk_device)
target_map = Storage.GetTargetMap
disk = Ops.get(target_map, disk_device, {})

if disk["dasd_format"] == ::Storage::DASDF_LDL
# error popup
Popup.Error(_("Cannot create partition table on LDL formatted DASD."))
return
end

if Storage.IsUsedBy(disk)
# error popup
Popup.Error(_("The disk is in use and cannot be modified."))
Expand Down

0 comments on commit 7238a83

Please sign in to comment.