diff options
author | NeilBrown <neilb@suse.de> | 2013-08-01 15:59:24 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-08-01 15:59:24 +1000 |
commit | a9c15847579ce3ac210b2dcc41e2af6c5f8bd65c (patch) | |
tree | 53e93dfc5cf25eafcda33ac609187500df617328 /mdadm.h | |
parent | 2ef219630b7e1baa72fce420b6bc41cf8071c5e8 (diff) |
mdmon: don't lie to systemd.
Now that mdmon responds fairly well to SIGTERM, stop lying to
systemd about being started on the initrd.
Note that if mdmon is rerun (--takeover) for some reason, and systemd
chooses to kill processes before remounting / readonly, then the
unmount will hang.
If systemd ever lets us tell it that we don't want to be killed until
root is readonly, then we should do that.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1390,6 +1390,8 @@ extern void fmt_devname(char *name, int num); extern char *stat2devnm(struct stat *st); extern char *fd2devnm(int fd); +extern int in_initrd(void); + #define _ROUND_UP(val, base) (((val) + (base) - 1) & ~(base - 1)) #define ROUND_UP(val, base) _ROUND_UP(val, (typeof(val))(base)) #define ROUND_UP_PTR(ptr, base) ((typeof(ptr)) \ |