From: Logan Gunthorpe <logang@deltatee.com>
To: linux-raid@vger.kernel.org, Jes Sorensen <jes@trained-monkey.org>
Cc: Guoqing Jiang <guoqing.jiang@linux.dev>, Xiao Ni <xni@redhat.com>,
Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>,
Coly Li <colyli@suse.de>,
Chaitanya Kulkarni <chaitanyak@nvidia.com>,
Jonmichael Hands <jm@chia.net>,
Stephen Bates <sbates@raithlin.com>,
Martin Oliveira <Martin.Oliveira@eideticom.com>,
David Sloan <David.Sloan@eideticom.com>,
Logan Gunthorpe <logang@deltatee.com>,
Kinga Tanska <kinga.tanska@linux.intel.com>
Subject: [PATCH mdadm v5 7/7] manpage: Add --write-zeroes option to manpage
Date: Wed, 16 Nov 2022 16:46:11 -0700 [thread overview]
Message-ID: <20221116234617.79441-2-logang@deltatee.com> (raw)
In-Reply-To: <20221116234617.79441-1-logang@deltatee.com>
Document the new --write-zeroes option in the manpage.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Kinga Tanska <kinga.tanska@linux.intel.com>
---
mdadm.8.in | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/mdadm.8.in b/mdadm.8.in
index 70c79d1e6e76..3beb475fd955 100644
--- a/mdadm.8.in
+++ b/mdadm.8.in
@@ -837,6 +837,22 @@ array is resynced at creation. From Linux version 3.0,
.B \-\-assume\-clean
can be used with that command to avoid the automatic resync.
+.TP
+.BR \-\-write-zeroes
+When creating an array, send write zeroes requests to all the block
+devices. This should zero the data area on all disks such that the
+initial sync is not necessary and, if successfull, will behave
+as if
+.B \-\-assume\-clean
+was specified.
+.IP
+This is intended for use with devices that have hardware offload for
+zeroing, but despit this zeroing can still take several minutes for
+large disks. Thus a message is printed before and after zeroing and
+each disk is zeroed in parallel with the others.
+.IP
+This is only meaningful with --create.
+
.TP
.BR \-\-backup\-file=
This is needed when
--
2.30.2
next prev parent reply other threads:[~2022-11-16 23:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 23:46 [PATCH mdadm v5 6/7] tests/00raid5-zero: Introduce test to exercise --write-zeros Logan Gunthorpe
2022-11-16 23:46 ` Logan Gunthorpe [this message]
2022-11-16 23:46 ` [PATCH mdadm v5 0/7] Write Zeroes option for Creating Arrays Logan Gunthorpe
2022-11-29 18:05 ` Chaitanya Kulkarni
2022-11-16 23:46 ` [PATCH mdadm v5 2/7] Create: remove safe_mode_delay local variable Logan Gunthorpe
2022-11-16 23:46 ` [PATCH mdadm v5 5/7] mdadm: Add --write-zeros option for Create Logan Gunthorpe
2022-11-16 23:46 ` [PATCH mdadm v5 4/7] mdadm: Introduce pr_info() Logan Gunthorpe
2022-11-16 23:46 ` [PATCH mdadm v5 1/7] Create: goto abort_locked instead of return 1 in error path Logan Gunthorpe
2022-11-16 23:46 ` [PATCH mdadm v5 3/7] Create: Factor out add_disks() helpers Logan Gunthorpe
-- strict thread matches above, loose matches on Subject: below --
2022-11-16 23:50 [PATCH mdadm v5 0/7] RESEND: Write Zeroes option for Creating Arrays Logan Gunthorpe
2022-11-16 23:50 ` [PATCH mdadm v5 7/7] manpage: Add --write-zeroes option to manpage Logan Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221116234617.79441-2-logang@deltatee.com \
--to=logang@deltatee.com \
--cc=David.Sloan@eideticom.com \
--cc=Martin.Oliveira@eideticom.com \
--cc=chaitanyak@nvidia.com \
--cc=colyli@suse.de \
--cc=guoqing.jiang@linux.dev \
--cc=jes@trained-monkey.org \
--cc=jm@chia.net \
--cc=kinga.tanska@linux.intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=mariusz.tkaczyk@linux.intel.com \
--cc=sbates@raithlin.com \
--cc=xni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).