diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-31 05:50:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-31 05:50:16 +0000 |
commit | 19c986195eab02a3b1da7b532df623cf46d92418 (patch) | |
tree | 639e479365923111fbeb91a7d24dad570d50d0ff /Incremental.c | |
parent | Adding upstream version 4.2+20231121. (diff) | |
download | mdadm-19c986195eab02a3b1da7b532df623cf46d92418.tar.xz mdadm-19c986195eab02a3b1da7b532df623cf46d92418.zip |
Adding upstream version 4.2+20240118.upstream/4.2+20240118
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Incremental.c b/Incremental.c index 3551c65..6cbc164 100644 --- a/Incremental.c +++ b/Incremental.c @@ -670,7 +670,7 @@ static void find_reject(int mdfd, struct supertype *st, struct mdinfo *sra, continue; if (d->disk.raid_disk > -1) - sysfs_set_str(sra, d, "slot", "none"); + sysfs_set_str(sra, d, "slot", STR_COMMON_NONE); if (sysfs_set_str(sra, d, "state", "remove") == 0) if (verbose >= 0) pr_err("removing old device %s from %s\n", @@ -1650,7 +1650,7 @@ int IncrementalRemove(char *devname, char *id_path, int verbose) struct mdstat_ent *ent; struct mddev_dev devlist; struct mdinfo mdi; - char buf[32]; + char buf[SYSFS_MAX_BUF_SIZE]; if (!id_path) dprintf("incremental removal without --path <id_path> lacks the possibility to re-add new device in this port\n"); |