diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-13 16:55:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-13 16:55:45 +0000 |
commit | 1dd2d8ec5cee893c5ad432809b7d8351d361d297 (patch) | |
tree | 892a19ccfd8f11e5f4a0076f660e09c52d45ddf6 /mdadm.c | |
parent | Releasing debian version 4.2+20230304-1. (diff) | |
download | mdadm-1dd2d8ec5cee893c5ad432809b7d8351d361d297.tar.xz mdadm-1dd2d8ec5cee893c5ad432809b7d8351d361d297.zip |
Merging upstream version 4.2+20230313.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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'; |