Skip to contentSkip to conversation

Small fixes from Debian

PATCH Applied Mariusz Tkaczyk 3 participants 6 messages Sep 9, 2022 – Sep 16, 2022 MD RAID

lore
Share & tools
lore
#0 lore raw

v2 cover Small fixes from Debian

Hi Jes and Coly,
Here we have small Debian customizations worth to be integrated.

Changes:
- Commit title updated, suggested by Paul.

Mariusz Tkaczyk (2):
mdadm: Add Documentation entries to systemd services
ReadMe: fix command-line help

 ReadMe.c                             | 2 +-
 systemd/[email protected] | 1 +
 systemd/[email protected]   | 1 +
 systemd/mdcheck_continue.service     | 3 ++-
 systemd/mdcheck_start.service        | 1 +
 systemd/[email protected]               | 1 +
 systemd/mdmonitor-oneshot.service    | 1 +
 systemd/mdmonitor.service            | 1 +
 8 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.26.2
#1 lore raw

PATCH v2 1/2 mdadm: Add Documentation entries to systemd services

Add documentation section.
Copied from Debian.

---
 systemd/[email protected] | 1 +
 systemd/[email protected]   | 1 +
 systemd/mdcheck_continue.service     | 3 ++-
 systemd/mdcheck_start.service        | 1 +
 systemd/[email protected]               | 1 +
 systemd/mdmonitor-oneshot.service    | 1 +
 systemd/mdmonitor.service            | 1 +
 7 files changed, 8 insertions(+), 1 deletion(-)
systemd/[email protected] +1 -0
index 9fdc8ec..64b8254 100644
@@ -8,6 +8,7 @@
 [Unit]
 Description=Manage MD Reshape on /dev/%I
 DefaultDependencies=no
+Documentation=man:mdadm(8)
 
 [Service]
 ExecStart=BINDIR/mdadm --grow --continue /dev/%I
systemd/[email protected] +1 -0
index efeb3f6..e938112 100644
@@ -2,6 +2,7 @@
 Description=Activate md array %I even though degraded
 DefaultDependencies=no
 ConditionPathExists=!/sys/devices/virtual/block/%i/md/sync_action
+Documentation=man:mdadm(8)
 
 [Service]
 Type=oneshot
systemd/mdcheck_continue.service +2 -1
index 854317f..f532490 100644
@@ -7,7 +7,8 @@
 
 [Unit]
 Description=MD array scrubbing - continuation
-ConditionPathExistsGlob = /var/lib/mdcheck/MD_UUID_*
+ConditionPathExistsGlob=/var/lib/mdcheck/MD_UUID_*
+Documentation=man:mdadm(8)
 
 [Service]
 Type=oneshot
systemd/mdcheck_start.service +1 -0
index 3bb3d13..703a658 100644
@@ -8,6 +8,7 @@
 [Unit]
 Description=MD array scrubbing
 Wants=mdcheck_continue.timer
+Documentation=man:mdadm(8)
 
 [Service]
 Type=oneshot
systemd/[email protected] +1 -0
index 7753395..97a1acd 100644
@@ -9,6 +9,7 @@
 Description=MD Metadata Monitor on /dev/%I
 DefaultDependencies=no
 Before=initrd-switch-root.target
+Documentation=man:mdmon(8)
 
 [Service]
 # mdmon should never complain due to lack of a platform,
systemd/mdmonitor-oneshot.service +1 -0
index 373955a..ba86b44 100644
@@ -7,6 +7,7 @@
 
 [Unit]
 Description=Reminder for degraded MD arrays
+Documentation=man:mdadm(8)
 
 [Service]
 Environment=MDADM_MONITOR_ARGS=--scan
systemd/mdmonitor.service +1 -0
index 46f7b88..9c36478 100644
@@ -8,6 +8,7 @@
 [Unit]
 Description=MD array monitor
 DefaultDependencies=no
+Documentation=man:mdadm(8)
 
 [Service]
 Environment=  MDADM_MONITOR_ARGS=--scan
Signature · 1 line
2.26.2
Acked-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] mdadm: Add Documentation entries to systemd services

Quoted 9 lines

2022年9月9日 21:50,Mariusz Tkaczyk <[email protected]> 写道:

Add documentation section.
Copied from Debian.

Thanks.

Coly Li

Quoted 99 lines

---

systemd/[email protected] | 1 +
systemd/[email protected]   | 1 +
systemd/mdcheck_continue.service     | 3 ++-
systemd/mdcheck_start.service        | 1 +
systemd/[email protected]               | 1 +
systemd/mdmonitor-oneshot.service    | 1 +
systemd/mdmonitor.service            | 1 +
7 files changed, 8 insertions(+), 1 deletion(-)
systemd/[email protected] +0 -0
index 9fdc8ec..64b8254 100644
@@ -8,6 +8,7 @@

[Unit]
Description=Manage MD Reshape on /dev/%I
DefaultDependencies=no
+Documentation=man:mdadm(8)

[Service]
ExecStart=BINDIR/mdadm --grow --continue /dev/%I

systemd/[email protected] +0 -0
index efeb3f6..e938112 100644
@@ -2,6 +2,7 @@

Description=Activate md array %I even though degraded DefaultDependencies=no ConditionPathExists=!/sys/devices/virtual/block/%i/md/sync_action +Documentation=man:mdadm(8)

[Service]
Type=oneshot

systemd/mdcheck_continue.service +0 -0
index 854317f..f532490 100644
@@ -7,7 +7,8 @@
 

[Unit]
Description=MD array scrubbing - continuation

systemd/mdcheck_continue.service +2 -1
-ConditionPathExistsGlob = /var/lib/mdcheck/MD_UUID_*
+ConditionPathExistsGlob=/var/lib/mdcheck/MD_UUID_*
+Documentation=man:mdadm(8)

[Service]
Type=oneshot

systemd/mdcheck_start.service +0 -0
index 3bb3d13..703a658 100644
@@ -8,6 +8,7 @@

[Unit]
Description=MD array scrubbing
Wants=mdcheck_continue.timer
+Documentation=man:mdadm(8)

[Service]
Type=oneshot

systemd/[email protected] +0 -0
index 7753395..97a1acd 100644
@@ -9,6 +9,7 @@

Description=MD Metadata Monitor on /dev/%I
DefaultDependencies=no
Before=initrd-switch-root.target
+Documentation=man:mdmon(8)

[Service]

# mdmon should never complain due to lack of a platform,
systemd/mdmonitor-oneshot.service +0 -0
index 373955a..ba86b44 100644
@@ -7,6 +7,7 @@
 

[Unit]
Description=Reminder for degraded MD arrays
+Documentation=man:mdadm(8)

[Service]
Environment=MDADM_MONITOR_ARGS=--scan

systemd/mdmonitor.service +0 -0
index 46f7b88..9c36478 100644
@@ -8,6 +8,7 @@

[Unit]
Description=MD array monitor
DefaultDependencies=no
+Documentation=man:mdadm(8)

[Service]
Environment= MDADM_MONITOR_ARGS=--scan

Signature · 1 line
2.26.2
#3 lore raw

PATCH v2 2/2 ReadMe: fix command-line help

In reply to Mariusz Tkaczyk

Make command-line help consistent with manual page. Copied from Debian.

---
 ReadMe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ReadMe.c +1 -1
index 7f94847..50a5e36 100644
@@ -477,7 +477,7 @@ char Help_assemble[] =
 ;
 
 char Help_manage[] =
-"Usage: mdadm arraydevice options component devices...\n"
+"Usage: mdadm [mode] arraydevice [options] <component devices...>\n"
 "\n"
 "This usage is for managing the component devices within an array.\n"
 "The --manage option is not needed and is assumed if the first argument\n"
Signature · 1 line
2.26.2
Acked-by on v2 2/2
#4 lore raw

Re: [PATCH v2 2/2] ReadMe: fix command-line help

Quoted 9 lines

2022年9月9日 21:50,Mariusz Tkaczyk <[email protected]> 写道:

Make command-line help consistent with manual page. Copied from Debian.

Thanks.

Coly Li

Quoted 20 lines

---
ReadMe.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
ReadMe.c +0 -0
index 7f94847..50a5e36 100644
@@ -477,7 +477,7 @@ char Help_assemble[] =
 ;
 

char Help_manage[] =
-"Usage: mdadm arraydevice options component devices...\n" +"Usage: mdadm [mode] arraydevice [options] <component devices...>\n" "\n"
"This usage is for managing the component devices within an array.\n" "The --manage option is not needed and is assumed if the first argument\n"

Signature · 1 line
2.26.2
Applied
#5 lore raw
In reply to Mariusz Tkaczyk
Quoted 10 lines · Mariusz Tkaczyk

Hi Jes and Coly,
Here we have small Debian customizations worth to be integrated.

Changes:
- Commit title updated, suggested by Paul.

Mariusz Tkaczyk (2):
mdadm: Add Documentation entries to systemd services
ReadMe: fix command-line help

Quoted 10 lines
 ReadMe.c                             | 2 +-
 systemd/[email protected] | 1 +
 systemd/[email protected]   | 1 +
 systemd/mdcheck_continue.service     | 3 ++-
 systemd/mdcheck_start.service        | 1 +
 systemd/[email protected]               | 1 +
 systemd/mdmonitor-oneshot.service    | 1 +
 systemd/mdmonitor.service            | 1 +
 8 files changed, 9 insertions(+), 2 deletions(-)

Applied!

Thanks,
Jes