New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add storage checks #468
Add storage checks #468
Conversation
f3acfd9
to
ad47165
Compare
431a760
to
7af69c8
Compare
c8350be
to
3f61aed
Compare
17a5632
to
1d4d9d7
Compare
7defe9b
to
170624a
Compare
68cc6a8
to
645f734
Compare
09e1cd7
to
f149102
Compare
package/yast2-storage-ng.spec
Outdated
@@ -16,7 +16,7 @@ | |||
# | |||
|
|||
Name: yast2-storage-ng | |||
Version: 4.0.68 | |||
Version: 4.0.70 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you jumping two numbers here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arfff
package/yast2-storage-ng.changes
Outdated
@@ -6,6 +14,7 @@ Mon Jan 15 12:51:01 UTC 2018 - ancor@suse.com | |||
alignment types, in addition to the optimal one. | |||
- Added a (temporary) workaround to a possible bug in libstorage-ng | |||
regarding alignment. | |||
- 4.0.69 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not intended to introduce a version bump, no need to "correct" that
|
||
- Added sanity checks for partitioning setup. | ||
- Partitioner: setup issues are shown to the user before continue. | ||
Mandatory product volumes are required according to control file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I miss the storage-ng fate entry and also mentioning the several bug reports we have about the missing checks.
@@ -69,7 +69,6 @@ | |||
it "requires it to be between 1 and 8MiB, despite the alignment" do | |||
expect(grub_part.min).to eq 1.MiB | |||
expect(grub_part.max).to eq 8.MiB | |||
expect(grub_part.align).to eq :keep_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove also the "despite the alignment" part from the textual description
@@ -79,7 +78,6 @@ | |||
it "requires it to be between 256KiB and 8MiB, despite the alignment" do | |||
expect(grub_part.min).to eq 256.KiB | |||
expect(grub_part.max).to eq 8.MiB | |||
expect(grub_part.align).to eq :keep_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for "despite the alignment"
@@ -138,7 +136,6 @@ | |||
it "requires it to be between 1MiB and 8MiB, despite the alignment" do | |||
expect(prep_part.min).to eq 1.MiB | |||
expect(prep_part.max).to eq 8.MiB | |||
expect(prep_part.align).to eq :keep_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for "despite the alignment"
@@ -148,7 +145,6 @@ | |||
it "requires it to be between 256KiB and 8MiB, despite the alignment" do | |||
expect(prep_part.min).to eq 256.KiB | |||
expect(prep_part.max).to eq 8.MiB | |||
expect(prep_part.align).to eq :keep_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for "despite the alignment"
src/lib/y2storage/md.rb
Outdated
# BIOS RAIDs. Class MdContainer is also derived from Md, but objects of this | ||
# class are not be considered neither Software nor BIOS RAIDs. | ||
# To properly exclude MdContainer as :raid device, here only Software RAIDs | ||
# are considered to be raid type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NP: Wouldn't be too much to ask to have this explanation right on top of the types << :raid if software_defined?
line instead of the heading of the method?
src/lib/y2storage/planned/md.rb
Outdated
@@ -105,7 +105,7 @@ def self.to_string_attrs | |||
def volume_match_values | |||
{ | |||
mount_point: mount_point, | |||
size: DiskSize.zero, | |||
size: nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we want to check the size of the Md devices? Doesn't Md#size
return a sensible value just like e.g. Partition#size
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a Planned::Md
and it has not #size
.
# Session15694/SHARE_Bootloader_Ihno_PittsPPT_0.09.pdf | ||
# | ||
# @return [Array<Filesystems::Type>] | ||
def self.zipl_filesystems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be mentioned that the first one is the preferred one (i.e. used by the guided setup)
error_message = _("Current boot disk cannot be used for booting") | ||
error_message = _( | ||
"Looks like the system is going to be installed on a FBA " \ | ||
"or LDL device. Booting from such device is not supported" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing period at the end?
@@ -60,7 +60,7 @@ def device_attributes_list | |||
device_udev_by_path.join(Yast::HTML.Newline), | |||
device_udev_by_id.join(Yast::HTML.Newline), | |||
# TRANSLATORS: acronym for Filesystem Identifier | |||
format(_("FS ID: %s"), "TODO") | |||
format(_("Partition ID: %s"), "TODO") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the comment for the translators
LGTM, let's go for it! |
PBI: https://trello.com/c/PxAc8OlA/766-5-expert-partitioner-add-sanity-checks