mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvconvert: provide better reshape reject message for open RaidLV
On commits 5e611c700ba1032ffb71bf0cdd33e062e5e16439 and 601ad1c73faa5fe3d74ff5b06cc47073b40a1850. Related: rhbz1447812
This commit is contained in:
parent
76314183e2
commit
1766eaec4b
@ -84,7 +84,8 @@ static int _check_lv_open_count(struct logical_volume *lv, int open_count) {
|
||||
return 0;
|
||||
}
|
||||
if (info.open_count != open_count) {
|
||||
log_error("Reshape of open %s not supported.", display_lvname(lv));
|
||||
log_error("Reshape is only supported when %s is not in use (e.g. unmount filesystem).",
|
||||
display_lvname(lv));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -6205,7 +6206,8 @@ static int _lv_open_excl(struct logical_volume *lv, struct device **dev) {
|
||||
if (!(*dev = dev_create_file(dev_path, NULL, NULL, 0)))
|
||||
return_0;
|
||||
if (!dev_open_flags(*dev, O_EXCL, 1, 1)) {
|
||||
log_error("Reshape of open %s not supported.", display_lvname(lv));
|
||||
log_error("Reshape is only supported when %s is not in use (e.g. unmount filesystem).",
|
||||
display_lvname(lv));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user