summaryrefslogtreecommitdiff
path: root/include/linux/drbd_limits.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-05-12 11:15:34 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:55:51 +0100
commit95f8efd08bcce65df994049a292b94e56c7ada67 (patch)
treea4a943aea52b65adc4ddabf736a30f66f83f6ed0 /include/linux/drbd_limits.h
parent69ef82dea4c34e4a0541fc3f415b0fef70fe12b0 (diff)
drbd: Fix the upper limit of resync-after
The 32-bit resync_after netlink field takes a device minor number as parameter, which is no longer limited to 255. We cannot statically verify which device numbers are valid, so set the ummer limit to the highest possible signed 32-bit integer. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/drbd_limits.h')
-rw-r--r--include/linux/drbd_limits.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h
index 48339ae69d50..c4a8f0fef7b2 100644
--- a/include/linux/drbd_limits.h
+++ b/include/linux/drbd_limits.h
@@ -113,9 +113,10 @@
#define DRBD_AL_EXTENTS_MAX 6433
#define DRBD_AL_EXTENTS_DEF 127
-#define DRBD_AFTER_MIN -1
-#define DRBD_AFTER_MAX 255
-#define DRBD_AFTER_DEF -1
+#define DRBD_RESYNC_AFTER_MIN -1
+#define DRBD_RESYNC_AFTER_MAX (1<<30)
+#define DRBD_RESYNC_AFTER_DEF -1
+#define DRBD_RESYNC_AFTER_SCALE '1'
/* } */