Skip to contentSkip to conversation

small fixes from Debian

PATCH Superseded Mariusz Tkaczyk 2 participants 4 messages Sep 6, 2022 MD RAID

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover small fixes from Debian

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

Mariusz Tkaczyk (2):
mdadm: systemd services adjustments
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 1/2 mdadm: systemd services adjustments

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 9fdc8ec7..64b8254a 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 efeb3f63..e9381125 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 854317f1..f5324905 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 3bb3d130..703a6583 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 77533958..97a1acd9 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 373955a2..ba86b44e 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 46f7b880..9c364785 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 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 7f94847e..50a5e36d 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
#2 lore raw

Re: [PATCH 1/2] mdadm: systemd services adjustments

In reply to Mariusz Tkaczyk

Dear Mariusz,

Thank you for the patches. Maybe use the summary/subject/title below:

mdadm: Add Documentation entries to systemd services

Kind regards,

Paul