summaryrefslogtreecommitdiffstats
path: root/Grow.c
diff options
context:
space:
mode:
authorJes Sorensen <jes@trained-monkey.org>2023-04-10 17:45:34 +0200
committerJes Sorensen <jes@trained-monkey.org>2023-04-10 17:47:32 +0200
commitf8d2c4286a92b7acb7872271a401ad1efe336096 (patch)
tree48b6cbf7904c080e4e9407efeed5969edad09915 /Grow.c
parentFix some cases eyesore formatting (diff)
downloadmdadm-f8d2c4286a92b7acb7872271a401ad1efe336096.tar.xz
mdadm-f8d2c4286a92b7acb7872271a401ad1efe336096.zip
Bump minimum kernel version to 2.6.32
Summary: At this point it probably is reasonable to drop support for anything prior to 3.10. Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Grow.c b/Grow.c
index 06001f2d..8fa97875 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1708,14 +1708,6 @@ char *analyse_change(char *devname, struct mdinfo *info, struct reshape *re)
return NULL;
}
- if (re->after.data_disks == re->before.data_disks &&
- get_linux_version() < 2006032)
- return "in-place reshape is not safe before 2.6.32 - sorry.";
-
- if (re->after.data_disks < re->before.data_disks &&
- get_linux_version() < 2006030)
- return "reshape to fewer devices is not supported before 2.6.30 - sorry.";
-
re->backup_blocks = compute_backup_blocks(
info->new_chunk, info->array.chunk_size,
re->after.data_disks, re->before.data_disks);
@@ -1895,14 +1887,6 @@ int Grow_reshape(char *devname, int fd,
return 1;
}
- if (s->raiddisks && s->raiddisks < array.raid_disks &&
- array.level > 1 && get_linux_version() < 2006032 &&
- !check_env("MDADM_FORCE_FEWER")) {
- pr_err("reducing the number of devices is not safe before Linux 2.6.32\n"
- " Please use a newer kernel\n");
- return 1;
- }
-
if (array.level > 1 && s->size > 1 &&
(unsigned long long) (array.chunk_size / 1024) > s->size) {
pr_err("component size must be larger than chunk size.\n");