mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
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:
parent
69ef82dea4
commit
95f8efd08b
6 changed files with 24 additions and 23 deletions
|
@ -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'
|
||||
|
||||
/* } */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue