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>
This commit is contained in:
Andreas Gruenbacher 2011-05-12 11:15:34 +02:00 committed by Philipp Reisner
parent 69ef82dea4
commit 95f8efd08b
6 changed files with 24 additions and 23 deletions

View file

@ -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'
/* } */