Commit cdc6af8d authored by Philipp Reisner's avatar Philipp Reisner Committed by Jens Axboe
Browse files

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: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent d40e5671
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}