diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-13 16:55:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-13 16:55:38 +0000 |
commit | 3f93672fea235de9cdedbf1cc440f09b3cfab3e8 (patch) | |
tree | 00cd571f505c85d946c225252fbb4373eb23d741 /mdadm.c | |
parent | Adding upstream version 4.2+20230304. (diff) | |
download | mdadm-3f93672fea235de9cdedbf1cc440f09b3cfab3e8.tar.xz mdadm-3f93672fea235de9cdedbf1cc440f09b3cfab3e8.zip |
Adding upstream version 4.2+20230313.upstream/4.2+20230313
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -590,6 +590,10 @@ int main(int argc, char *argv[]) s.assume_clean = 1; continue; + case O(CREATE, WriteZeroes): + s.write_zeroes = 1; + continue; + case O(GROW,'n'): case O(CREATE,'n'): case O(BUILD,'n'): /* number of raid disks */ @@ -1251,6 +1255,11 @@ int main(int argc, char *argv[]) } } + if (s.write_zeroes && !s.assume_clean) { + pr_info("Disk zeroing requested, setting --assume-clean to skip resync\n"); + s.assume_clean = 1; + } + if (!mode && devs_found) { mode = MISC; devmode = 'Q'; |