summaryrefslogtreecommitdiff
path: root/Manage.c
diff options
context:
space:
mode:
authorJes Sorensen <jes@trained-monkey.org>2023-04-10 11:45:34 -0400
committerJes Sorensen <jes@trained-monkey.org>2023-04-10 11:47:32 -0400
commitf8d2c4286a92b7acb7872271a401ad1efe336096 (patch)
tree48b6cbf7904c080e4e9407efeed5969edad09915 /Manage.c
parentd3bb888d885fc96fc6239fbf6c22c63143eba461 (diff)
downloadmdadm-f8d2c4286a92b7acb7872271a401ad1efe336096.tar.gz
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 fde6aba..f54de7c 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)