Skip to content

Commit

Permalink
- disallow using unpartitioned DASDs for LVM (fate#317934)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Jun 30, 2015
1 parent d4f5c15 commit 5b82a3d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions package/yast2-storage.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 30 11:49:34 CEST 2015 - aschnell@suse.de

- disallow using unpartitioned DASDs for LVM (fate#317934)
- 3.1.60

-------------------------------------------------------------------
Fri Jun 26 10:18:28 CEST 2015 - aschnell@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-storage.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-storage
Version: 3.1.59
Version: 3.1.60
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
8 changes: 5 additions & 3 deletions src/include/partitioning/lvm_pv_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ def get_possible_pvs(targetMap)
)
end
if Builtins.size(Ops.get_list(devmap, "partitions", [])) == 0 &&
Storage.IsPartType(Ops.get_symbol(devmap, "type", :CT_UNKNOWN)) &&
(!Storage.IsUsedBy(devmap) ||
Ops.get_symbol(devmap, "used_by_type", :UB_NONE) == :UB_LVM)
Storage.IsPartType(Ops.get_symbol(devmap, "type", :CT_UNKNOWN)) &&
# unpartitioned DASDs cannot be used for LVM (fate #317934)
!String.StartsWith(dev, "/dev/dasd") &&
(!Storage.IsUsedBy(devmap) ||
Ops.get_symbol(devmap, "used_by_type", :UB_NONE) == :UB_LVM)
p = {
"device" => dev,
"maindev" => dev,
Expand Down

0 comments on commit 5b82a3d

Please sign in to comment.