mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Revert "lvresize: enable crypt resizing with --force"
It looks like force was not being used to enable crypt resize, but rather to force an inconsistency between LV and crypt sizes, so this is either not needed or force in this case should have some other meaning. This reverts commit ed808a9b548ca59221d512bfb7ae581e8367fe50.
This commit is contained in:
parent
49c650423a
commit
8adfcddc35
@ -6417,14 +6417,10 @@ static int _fs_reduce(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (!strcmp(lp->fsopt, "checksize")) {
|
if (!strcmp(lp->fsopt, "checksize")) {
|
||||||
if (!lp->force) {
|
|
||||||
log_error("crypt reduce is required (see --resizefs or cryptsetup resize.)");
|
log_error("crypt reduce is required (see --resizefs or cryptsetup resize.)");
|
||||||
ret = 0;
|
ret = 0;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/* This is only because it has been allowed in the past. */
|
|
||||||
log_print("Forcing cryptsetup resize (--resizefs preferred.)");
|
|
||||||
}
|
|
||||||
if (test_mode()) {
|
if (test_mode()) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto_out;
|
goto_out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user