projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d40e567
)
drbd: Allow online layout change of AL while peer is not connected
author
Philipp Reisner
<philipp.reisner@linbit.com>
Mon, 28 Apr 2014 16:43:15 +0000
(18:43 +0200)
committer
Jens Axboe
<axboe@fb.com>
Wed, 30 Apr 2014 19:46:54 +0000
(13:46 -0600)
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>
drivers/block/drbd/drbd_nl.c
patch
|
blob
|
history
diff --git
a/drivers/block/drbd/drbd_nl.c
b/drivers/block/drbd/drbd_nl.c
index e891cb0a83c9b3a6130d29a4a6154276918d4f74..d219210cca1edf12bc459a319f1a5db07293fa55 100644
(file)
--- a/
drivers/block/drbd/drbd_nl.c
+++ b/
drivers/block/drbd/drbd_nl.c
@@
-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;
}