Skip to contentSkip to conversation

mdadm/manpage: update manpage for readonly and array-size

PATCH Applied Zhilong Liu 3 participants 10 messages Apr 10, 2017 – Apr 12, 2017 MD RAID

lore
Share & tools
lore
#0 lore raw

cover mdadm/manpage: update manpage for readonly and array-size

Hi, Jes;
These two patches is to update the description for readonly and array-size
sectors.

Thanks,
Zhilong

---

Zhilong Liu (2):
mdadm/manpage:update description for readonly in manpage mdadm/manpage:clustered array doesn't support --array-size yet

 mdadm.8.in | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
Signature · 1 line
2.6.6
#1 lore raw

PATCH 1/2 mdadm/manpage:update description for readonly in manpage

update readonly/readwrite in man page:
Currently both the readwrite and readonly are worked well, thus updates description for them.

---
 mdadm.8.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
mdadm.8.in +5 -5
index 744c12b..f006cf5 100644
@@ -925,7 +925,8 @@ will not try to be so clever.
 Start the array
 .B read only
 rather than read-write as normal.  No writes will be allowed to the
-array, and no resync, recovery, or reshape will be started.
+array, and no resync, recovery, or reshape will be started. It works with
+Create, Assemble, Manage and Misc mode.
 
 .TP
 .BR \-a ", " "\-\-auto{=yes,md,mdp,part,p}{NN}"
@@ -2232,7 +2233,7 @@ be in use.
 
 .TP
 .B \-\-readonly
-start the array readonly \(em not supported yet.
+start the array with readonly status.
 
 .SH MANAGE MODE
 .HP 12
@@ -2438,12 +2439,11 @@ This will fully activate a partially assembled md array.
 
 .TP
 .B \-\-readonly
-This will mark an active array as read-only, providing that it is
-not currently being used.
+This will set an active array as read-only status.
 
 .TP
 .B \-\-readwrite
-This will change a
+This will change an
 .B readonly
 array back to being read/write.
 
Signature · 1 line
2.6.6
#2 lore raw

PATCH 2/2 mdadm/manpage:clustered array doesn't support --array-size yet

update man page for --array-size:
clustered array isn't allowed to change array_sector by now.

---
 mdadm.8.in | 4 ++++
 1 file changed, 4 insertions(+)
mdadm.8.in +4 -0
index f006cf5..3555516 100644
@@ -541,6 +541,10 @@ A value of
 restores the apparent size of the array to be whatever the real
 amount of available space is.
 
+The
+.B clustered
+array isn't supported this parameter yet.
+
 .TP
 .BR \-c ", " \-\-chunk=
 Specify chunk size of kilobytes.  The default when creating an
Signature · 1 line
2.6.6
#3 lore raw

Re: [PATCH 2/2] mdadm/manpage:clustered array doesn't support --array-size yet

Quoted 13 lines · Zhilong Liu

update man page for --array-size:
clustered array isn't allowed to change array_sector by now.

---
 mdadm.8.in | 4 ++++
 1 file changed, 4 insertions(+)
mdadm.8.in +0 -0
index f006cf5..3555516 100644

mdadm.8.in A value of · line 546

Quoted 6 lines
mdadm.8.in +3 -0
@@ -541,6 +541,10 @@ A value of
 restores the apparent size of the array to be whatever the real
 amount of available space is.
 
+The
+.B clustered
+array isn't supported this parameter yet.

Should this say "Clustered arrays do not support this parameter yet." ?

Thanks,
Jes

#4 lore raw

PATCH 2/2 mdadm/manpage:clustered arrays don't support array-size yet

Update manpage for array-size section:
Clustered arrays don't support the --array-size yet.

---
 mdadm.8.in | 2 ++
 1 file changed, 2 insertions(+)
mdadm.8.in +2 -0
index f10a8b8..fb99a5c 100644
@@ -541,6 +541,8 @@ A value of
 restores the apparent size of the array to be whatever the real
 amount of available space is.
 
+Clustered arrays do not support this parameter yet.
+
 .TP
 .BR \-c ", " \-\-chunk=
 Specify chunk size of kilobytes.  The default when creating an
Signature · 1 line
2.6.6
Applied
#5 lore raw

Re: [PATCH v1 2/2] mdadm/manpage:clustered arrays don't support array-size yet

Quoted 7 lines · Zhilong Liu

Update manpage for array-size section:
Clustered arrays don't support the --array-size yet.

---
 mdadm.8.in | 2 ++
 1 file changed, 2 insertions(+)

Applied!

Thanks,
Jes

#6 lore raw

Re: [PATCH 1/2] mdadm/manpage:update description for readonly in manpage

In reply to Zhilong Liu
Quoted 8 lines · Zhilong Liu

update readonly/readwrite in man page:
Currently both the readwrite and readonly are worked well, thus updates description for them.

---
 mdadm.8.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

A couple of comments below.

mdadm.8.in be in use. · line 2236

Quoted 4 lines

.TP
.B \-\-readonly

mdadm.8.in +1 -1
-start the array readonly \(em not supported yet.
+start the array with readonly status.

I believe it would be more correct to say "start the array in readonly mode" here.

mdadm.8.in This will fully activate a partially assembled md array. · line 2442

Quoted 9 lines

.SH MANAGE MODE
.HP 12

mdadm.8.in +1 -2
@@ -2438,12 +2439,11 @@ This will fully activate a partially assembled md array.
 
 .TP
 .B \-\-readonly
-This will mark an active array as read-only, providing that it is
-not currently being used.
+This will set an active array as read-only status.

I think this chance is not good, and should be omitted.

mdadm.8.in This will fully activate a partially assembled md array. · line 2448

Quoted 6 lines
mdadm.8.in +1 -1
 .TP
 .B \-\-readwrite
-This will change a
+This will change an
 .B readonly
 array back to being read/write.

This change is grammatically incorrect I believe and the original text is correct.

Thanks,
Jes

#7 lore raw

Re: [PATCH 1/2] mdadm/manpage:update description for readonly in manpage

Quoted 8 lines · Jes Sorensen

mdadm.8.in This will fully activate a partially assembled md array. · line 2442

Quoted 6 lines

.TP
.B \-\-readonly

mdadm.8.in +1 -2
-This will mark an active array as read-only, providing that it is
-not currently being used.
+This will set an active array as read-only status.

I think this chance is not good, and should be omitted.

Agreed, except that I would change "providing" to "provided".

Quoted 10 lines

mdadm.8.in This will fully activate a partially assembled md array. · line 2448

Quoted 7 lines

.TP
.B \-\-readwrite

mdadm.8.in +1 -1
-This will change a
+This will change an
 .B readonly
 array back to being read/write.

This change is grammatically incorrect I believe and the original text is correct.

Agreed.

Cheers,
Wol

#8 lore raw

PATCH 1/2 mdadm/manpage:update manpage for readonly parameter

In reply to Jes Sorensen

update readonly in manpage:
Currently both the readwrite and readonly are worked well, update the readonly section.
One commit in linux/driver/md. Cleared "MD_CLOSING bit" to

Fixes af8d8e6f0315 ("md: changes for MD_STILL_CLOSED flag")
---
 mdadm.8.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
mdadm.8.in +3 -2
index 744c12b..f10a8b8 100644
@@ -925,7 +925,8 @@ will not try to be so clever.
 Start the array
 .B read only
 rather than read-write as normal.  No writes will be allowed to the
-array, and no resync, recovery, or reshape will be started.
+array, and no resync, recovery, or reshape will be started. It works with
+Create, Assemble, Manage and Misc mode.
 
 .TP
 .BR \-a ", " "\-\-auto{=yes,md,mdp,part,p}{NN}"
@@ -2232,7 +2233,7 @@ be in use.
 
 .TP
 .B \-\-readonly
-start the array readonly \(em not supported yet.
+start the array in readonly mode.
 
 .SH MANAGE MODE
 .HP 12
Signature · 1 line
2.6.6
Applied
#9 lore raw

Re: [PATCH v1 1/2] mdadm/manpage:update manpage for readonly parameter

Quoted 10 lines · Zhilong Liu

update readonly in manpage:
Currently both the readwrite and readonly are worked well, update the readonly section.
One commit in linux/driver/md. Cleared "MD_CLOSING bit" to

Fixes af8d8e6f0315 ("md: changes for MD_STILL_CLOSED flag")
---
 mdadm.8.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Applied!

Thanks,
Jes

Quoted 24 lines
mdadm.8.in +3 -2
index 744c12b..f10a8b8 100644
@@ -925,7 +925,8 @@ will not try to be so clever.
 Start the array
 .B read only
 rather than read-write as normal.  No writes will be allowed to the
-array, and no resync, recovery, or reshape will be started.
+array, and no resync, recovery, or reshape will be started. It works with
+Create, Assemble, Manage and Misc mode.
 
 .TP
 .BR \-a ", " "\-\-auto{=yes,md,mdp,part,p}{NN}"
@@ -2232,7 +2233,7 @@ be in use.
 
 .TP
 .B \-\-readonly
-start the array readonly \(em not supported yet.
+start the array in readonly mode.
 
 .SH MANAGE MODE
 .HP 12