Codebase list mdadm / da82751
Add --offroot argument to mdmon Acked-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de> Jes Sorensen authored 12 years ago NeilBrown committed 12 years ago
2 changed file(s) with 19 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
44
55 .SH SYNOPSIS
66
7 .BI mdmon " [--all] [--takeover] CONTAINER"
7 .BI mdmon " [--all] [--takeover] [--offroot] CONTAINER"
88
99 .SH OVERVIEW
1010 The 2.6.27 kernel brings the ability to support external metadata arrays.
164164 containers with names longer than 5 characters, this argument can be
165165 arbitrarily extended, e.g. to
166166 .BR \-\-all-active-arrays .
167 .TP
168 .BR \-\-offroot
169 Set first character of argv[0] to @ to indicate mdmon was launched
170 from initrd/initramfs and should not be shutdown by systemd as part of
171 the regular shutdown process. This option is normally only used by
172 the system's initscripts. Please see here for more details on how
173 systemd handled argv[0]:
174 .IP
175 .B http://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons
176 .PP
167177
168178 .PP
169179 Note that
271271 " --help -h : This message\n"
272272 " --all : All devices\n"
273273 " --takeover -t : Takeover container\n"
274 " --offroot : Set first character of argv[0] to @ to indicate the\n"
275 " application was launched from initrd/initramfs and\n"
276 " should not be shutdown by systemd as part of the\n"
277 " regular shutdown process.\n"
274278 );
275279 exit(2);
276280 }
290294 {"all", 0, NULL, 'a'},
291295 {"takeover", 0, NULL, 't'},
292296 {"help", 0, NULL, 'h'},
297 {"offroot", 0, NULL, OffRootOpt},
293298 {NULL, 0, NULL, 0}
294299 };
295300
302307 case 't':
303308 container_name = optarg;
304309 takeover = 1;
310 break;
311 case OffRootOpt:
312 argv[0][0] = '@';
305313 break;
306314 case 'h':
307315 default: