Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package yast2-storage-ng for
openSUSE:Factory checked in at 2021-01-25 18:23:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-storage-ng (Old)
and /work/SRC/openSUSE:Factory/.yast2-storage-ng.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-storage-ng"
Mon Jan 25 18:23:11 2021 rev:99 rq:866594 version:4.3.40
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-storage-ng/yast2-storage-ng.changes
2021-01-18 11:30:50.068556671 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-storage-ng.new.28504/yast2-storage-ng.changes
2021-01-25 18:23:32.684422285 +0100
@@ -1,0 +2,19 @@
+Mon Jan 25 11:52:18 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <[email protected]>
+
+- Partitioner: fix typo calling to popup (bsc#1181348).
+- 4.3.40
+
+-------------------------------------------------------------------
+Fri Jan 22 15:37:00 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <[email protected]>
+
+- Partitioner: show used devices for MD BIOS RAID (bsc#1181300).
+- 4.3.39
+
+-------------------------------------------------------------------
+Thu Jan 21 12:20:34 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <[email protected]>
+
+- Partitioner: properly set subvolume limit when creating a new
+ subvolume (bsc#1181205).
+- 4.3.38
+
+-------------------------------------------------------------------
Old:
----
yast2-storage-ng-4.3.37.tar.bz2
New:
----
yast2-storage-ng-4.3.40.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-storage-ng.spec ++++++
--- /var/tmp/diff_new_pack.6UcNQK/_old 2021-01-25 18:23:33.256423101 +0100
+++ /var/tmp/diff_new_pack.6UcNQK/_new 2021-01-25 18:23:33.260423107 +0100
@@ -17,7 +17,7 @@
Name: yast2-storage-ng
-Version: 4.3.37
+Version: 4.3.40
Release: 0
Summary: YaST2 - Storage Configuration
License: GPL-2.0-only OR GPL-3.0-only
++++++ yast2-storage-ng-4.3.37.tar.bz2 -> yast2-storage-ng-4.3.40.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/package/yast2-storage-ng.changes
new/yast2-storage-ng-4.3.40/package/yast2-storage-ng.changes
--- old/yast2-storage-ng-4.3.37/package/yast2-storage-ng.changes
2021-01-14 16:49:25.000000000 +0100
+++ new/yast2-storage-ng-4.3.40/package/yast2-storage-ng.changes
2021-01-25 14:01:23.000000000 +0100
@@ -1,4 +1,23 @@
-------------------------------------------------------------------
+Mon Jan 25 11:52:18 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <[email protected]>
+
+- Partitioner: fix typo calling to popup (bsc#1181348).
+- 4.3.40
+
+-------------------------------------------------------------------
+Fri Jan 22 15:37:00 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <[email protected]>
+
+- Partitioner: show used devices for MD BIOS RAID (bsc#1181300).
+- 4.3.39
+
+-------------------------------------------------------------------
+Thu Jan 21 12:20:34 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <[email protected]>
+
+- Partitioner: properly set subvolume limit when creating a new
+ subvolume (bsc#1181205).
+- 4.3.38
+
+-------------------------------------------------------------------
Thu Jan 14 13:40:54 UTC 2021 - Ancor Gonzalez Sosa <[email protected]>
- Partitioner: removed warning for too small EFI system partition.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/package/yast2-storage-ng.spec
new/yast2-storage-ng-4.3.40/package/yast2-storage-ng.spec
--- old/yast2-storage-ng-4.3.37/package/yast2-storage-ng.spec 2021-01-14
16:49:25.000000000 +0100
+++ new/yast2-storage-ng-4.3.40/package/yast2-storage-ng.spec 2021-01-25
14:01:23.000000000 +0100
@@ -16,7 +16,7 @@
#
Name: yast2-storage-ng
-Version: 4.3.37
+Version: 4.3.40
Release: 0
Summary: YaST2 - Storage Configuration
License: GPL-2.0-only OR GPL-3.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/actions/add_btrfs_subvolume.rb
new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/actions/add_btrfs_subvolume.rb
---
old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/actions/add_btrfs_subvolume.rb
2021-01-14 16:49:25.000000000 +0100
+++
new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/actions/add_btrfs_subvolume.rb
2021-01-25 14:01:23.000000000 +0100
@@ -1,4 +1,4 @@
-# Copyright (c) [2020] SUSE LLC
+# Copyright (c) [2020-2021] SUSE LLC
#
# All Rights Reserved.
#
@@ -50,7 +50,7 @@
return unless dialog.run == :next
- controller.create_subvolume(controller.subvolume_path,
controller.subvolume_nocow)
+ controller.create_subvolume
UIState.instance.select_row(controller.subvolume.sid)
:finish
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/actions/controllers/btrfs_subvolume.rb
new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/actions/controllers/btrfs_subvolume.rb
---
old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/actions/controllers/btrfs_subvolume.rb
2021-01-14 16:49:25.000000000 +0100
+++
new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/actions/controllers/btrfs_subvolume.rb
2021-01-25 14:01:23.000000000 +0100
@@ -1,4 +1,4 @@
-# Copyright (c) [2020] SUSE LLC
+# Copyright (c) [2020-2021] SUSE LLC
#
# All Rights Reserved.
#
@@ -59,15 +59,13 @@
set_default_values
end
- # Adds a new Btrfs subvolume
+ # Creates a new Btrfs subvolume according to the values stored in the
controller
#
# Note that the new added subvolume could be shadowed. In that case,
the mount point of the
# subvolume is removed, see {Y2Storage::Shadower#refresh_shadowing}.
- #
- # @param path [String]
- # @param nocow [Booelan]
- def create_subvolume(path, nocow = false)
- @subvolume = filesystem.create_btrfs_subvolume(path, nocow)
+ def create_subvolume
+ @subvolume = filesystem.create_btrfs_subvolume(subvolume_path,
subvolume_nocow)
+ subvolume.referenced_limit = subvolume_referenced_limit
Y2Storage::Shadower.new(current_graph, filesystems:
[filesystem]).refresh_shadowing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/widgets/format_and_mount.rb
new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/widgets/format_and_mount.rb
---
old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/widgets/format_and_mount.rb
2021-01-14 16:49:25.000000000 +0100
+++
new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/widgets/format_and_mount.rb
2021-01-25 14:01:23.000000000 +0100
@@ -716,7 +716,7 @@
# size number is from bsc1065071#c5
return true if @controller.blk_device.size >
::Y2Storage::DiskSize.MiB(2)
- Yast2::Popup.show(_("Only devices bigger than 2 MiB can be
encrypted."), heading: :error)
+ Yast2::Popup.show(_("Only devices bigger than 2 MiB can be
encrypted."), headline: :error)
false
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/widgets/pages/disk.rb
new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/widgets/pages/disk.rb
--- old/yast2-storage-ng-4.3.37/src/lib/y2partitioner/widgets/pages/disk.rb
2021-01-14 16:49:25.000000000 +0100
+++ new/yast2-storage-ng-4.3.40/src/lib/y2partitioner/widgets/pages/disk.rb
2021-01-25 14:01:23.000000000 +0100
@@ -1,4 +1,4 @@
-# Copyright (c) [2017-2020] SUSE LLC
+# Copyright (c) [2017-2021] SUSE LLC
#
# All Rights Reserved.
#
@@ -79,7 +79,13 @@
class DiskUsedDevicesTab < UsedDevicesTab
# @see UsedDevicesTab#used_devices
def used_devices
- device.is?(:multipath, :dm_raid) ? device.parents : []
+ if device.is?(:multipath, :dm_raid)
+ device.parents
+ elsif device.is?(:md)
+ device.devices
+ else
+ []
+ end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/test/y2partitioner/actions/controllers/btrfs_subvolume_test.rb
new/yast2-storage-ng-4.3.40/test/y2partitioner/actions/controllers/btrfs_subvolume_test.rb
---
old/yast2-storage-ng-4.3.37/test/y2partitioner/actions/controllers/btrfs_subvolume_test.rb
2021-01-14 16:49:25.000000000 +0100
+++
new/yast2-storage-ng-4.3.40/test/y2partitioner/actions/controllers/btrfs_subvolume_test.rb
2021-01-25 14:01:23.000000000 +0100
@@ -1,6 +1,6 @@
#!/usr/bin/env rspec
-# Copyright (c) [2020] SUSE LLC
+# Copyright (c) [2020-2021] SUSE LLC
#
# All Rights Reserved.
#
@@ -46,15 +46,26 @@
describe "#create_subvolume" do
let(:shadower) { instance_double(Y2Storage::Shadower) }
- it "creates a new subvolume with the given attributes" do
+ let(:limit_size) { Y2Storage::DiskSize.new("5 GiB") }
+
+ before do
+ filesystem.quota = true
+
+ subject.subvolume_path = "@/foo"
+ subject.subvolume_nocow = true
+ subject.subvolume_referenced_limit = limit_size
+ end
+
+ it "creates a new subvolume with the currently stored attributes" do
foo_subvolume = filesystem.btrfs_subvolumes.find { |s| s.path == "@/foo"
}
expect(foo_subvolume).to be_nil
- subject.create_subvolume("@/foo", true)
+ subject.create_subvolume
expect(subject.subvolume).to_not be_nil
expect(subject.subvolume.path).to eq("@/foo")
expect(subject.subvolume.nocow?).to eq(true)
+ expect(subject.subvolume.referenced_limit).to eq(limit_size)
end
it "refreshes the shadowing of the subvolumes from the current filesystem"
do
@@ -63,16 +74,21 @@
expect(shadower).to receive(:refresh_shadowing)
- subject.create_subvolume("@/foo", true)
+ subject.create_subvolume
end
end
describe "#update_subvolume" do
before do
+ filesystem.quota = true
+
subject.subvolume_path = "@/bar"
subject.subvolume_nocow = false
+ subject.subvolume_referenced_limit = limit_size
end
+ let(:limit_size) { Y2Storage::DiskSize.new("5 GiB") }
+
RSpec.shared_examples "updates subvolume" do
it "does not remove the subvolume" do
sid = subvolume.sid
@@ -90,6 +106,14 @@
expect(subvolume.nocow?).to eq(false)
end
+ it "updates the referenced limit subvolume attribute" do
+ expect(subvolume.referenced_limit).to_not eq(limit_size)
+
+ subject.update_subvolume
+
+ expect(subvolume.referenced_limit).to eq(limit_size)
+ end
+
it "does not modify the subvolume path" do
path = subvolume.path
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/test/y2partitioner/widgets/format_and_mount_test.rb
new/yast2-storage-ng-4.3.40/test/y2partitioner/widgets/format_and_mount_test.rb
---
old/yast2-storage-ng-4.3.37/test/y2partitioner/widgets/format_and_mount_test.rb
2021-01-14 16:49:25.000000000 +0100
+++
new/yast2-storage-ng-4.3.40/test/y2partitioner/widgets/format_and_mount_test.rb
2021-01-25 14:01:23.000000000 +0100
@@ -488,7 +488,7 @@
end
it "shows an error popup" do
- expect(Yast2::Popup).to receive(:show)
+ expect(Yast2::Popup).to receive(:show).with(anything, headline:
:error)
subject.validate
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-storage-ng-4.3.37/test/y2partitioner/widgets/pages/disk_test.rb
new/yast2-storage-ng-4.3.40/test/y2partitioner/widgets/pages/disk_test.rb
--- old/yast2-storage-ng-4.3.37/test/y2partitioner/widgets/pages/disk_test.rb
2021-01-14 16:49:25.000000000 +0100
+++ new/yast2-storage-ng-4.3.40/test/y2partitioner/widgets/pages/disk_test.rb
2021-01-25 14:01:23.000000000 +0100
@@ -1,6 +1,6 @@
#!/usr/bin/env rspec
-# Copyright (c) [2017-2020] SUSE LLC
+# Copyright (c) [2017-2021] SUSE LLC
#
# All Rights Reserved.
#
@@ -106,12 +106,12 @@
describe "#contents" do
let(:items) { column_values(table, 0) }
- context "when the device is a BIOS RAID" do
+ context "when the device is a DM RAID" do
let(:scenario) { "empty-dm_raids.xml" }
let(:device) {
current_graph.find_by_name("/dev/mapper/isw_ddgdcbibhd_test1") }
- it "shows a table with the BIOS RAID and its devices" do
+ it "shows a table with the MD RAID and its devices" do
expect(table).to_not be_nil
expect(remove_sort_keys(items)).to contain_exactly(
@@ -121,6 +121,22 @@
)
end
end
+
+ context "when the device is a MD BIOS RAID" do
+ let(:scenario) { "md-imsm1-devicegraph.xml" }
+
+ let(:device) { current_graph.find_by_name("/dev/md/a") }
+
+ it "shows a table with the MD BIOS RAID and its devices" do
+ expect(table).to_not be_nil
+
+ expect(remove_sort_keys(items)).to contain_exactly(
+ "/dev/md/a",
+ "/dev/sdb",
+ "/dev/sdd"
+ )
+ end
+ end
context "when the device is a Multipath" do
let(:scenario) { "multipath-formatted.xml" }