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
4 | 4 |
|
5 | 5 |
.SH SYNOPSIS
|
6 | 6 |
|
7 | |
.BI mdmon " [--all] [--takeover] CONTAINER"
|
|
7 |
.BI mdmon " [--all] [--takeover] [--offroot] CONTAINER"
|
8 | 8 |
|
9 | 9 |
.SH OVERVIEW
|
10 | 10 |
The 2.6.27 kernel brings the ability to support external metadata arrays.
|
|
164 | 164 |
containers with names longer than 5 characters, this argument can be
|
165 | 165 |
arbitrarily extended, e.g. to
|
166 | 166 |
.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
|
167 | 177 |
|
168 | 178 |
.PP
|
169 | 179 |
Note that
|
271 | 271 |
" --help -h : This message\n"
|
272 | 272 |
" --all : All devices\n"
|
273 | 273 |
" --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"
|
274 | 278 |
);
|
275 | 279 |
exit(2);
|
276 | 280 |
}
|
|
290 | 294 |
{"all", 0, NULL, 'a'},
|
291 | 295 |
{"takeover", 0, NULL, 't'},
|
292 | 296 |
{"help", 0, NULL, 'h'},
|
|
297 |
{"offroot", 0, NULL, OffRootOpt},
|
293 | 298 |
{NULL, 0, NULL, 0}
|
294 | 299 |
};
|
295 | 300 |
|
|
302 | 307 |
case 't':
|
303 | 308 |
container_name = optarg;
|
304 | 309 |
takeover = 1;
|
|
310 |
break;
|
|
311 |
case OffRootOpt:
|
|
312 |
argv[0][0] = '@';
|
305 | 313 |
break;
|
306 | 314 |
case 'h':
|
307 | 315 |
default:
|