mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
drbd: Allow online layout change of AL while peer is not connected
If a user forces the operation he takes the blame in case the peer does not have enough space. No reason to dey this... Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
d40e567149
commit
cdc6af8df4
1 changed files with 1 additions and 1 deletions
|
@ -2489,7 +2489,7 @@ int drbd_adm_resize(struct sk_buff *skb, struct genl_info *info)
|
|||
goto fail_ldev;
|
||||
}
|
||||
|
||||
if (device->state.conn != C_CONNECTED) {
|
||||
if (device->state.conn != C_CONNECTED && !rs.resize_force) {
|
||||
retcode = ERR_MD_LAYOUT_CONNECTED;
|
||||
goto fail_ldev;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue