summaryrefslogtreecommitdiffstats
path: root/Manage.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 /Manage.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 'Manage.c')
-rw-r--r--Manage.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/Manage.c b/Manage.c
index fde6aba3..f54de7c6 100644
--- a/Manage.c
+++ b/Manage.c
@@ -461,17 +461,6 @@ done:
goto out;
}
- if (get_linux_version() < 2006028) {
- /* prior to 2.6.28, KOBJ_CHANGE was not sent when an md array
- * was stopped, so We'll do it here just to be sure. Drop any
- * partitions as well...
- */
- if (fd >= 0)
- ioctl(fd, BLKRRPART, 0);
- if (mdi)
- sysfs_uevent(mdi, "change");
- }
-
if (devnm[0] && use_udev()) {
struct map_ent *mp = map_by_devnm(&map, devnm);
remove_devices(devnm, mp ? mp->path : NULL);
@@ -621,12 +610,6 @@ int attempt_re_add(int fd, int tfd, struct mddev_dev *dv,
* though.
*/
mdu_disk_info_t disc;
- /* re-add doesn't work for version-1 superblocks
- * before 2.6.18 :-(
- */
- if (array->major_version == 1 &&
- get_linux_version() <= 2006018)
- goto skip_re_add;
disc.number = mdi.disk.number;
if (md_get_disk_info(fd, &disc) != 0 ||
disc.major != 0 || disc.minor != 0)