diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 10:50:38 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 10:50:38 +0100 |
commit | a04d576343fcdc3da6dee3a198a4534daddbe96e (patch) | |
tree | 83f4a5e0b9b7ccd7df8d91647da4f943e0417899 /mapfile.c | |
parent | Always set 'homehost' if not specified. (diff) | |
download | mdadm-a04d576343fcdc3da6dee3a198a4534daddbe96e.tar.xz mdadm-a04d576343fcdc3da6dee3a198a4534daddbe96e.zip |
Always update mdadm/map when starting an array.
We previously only updated /var/run/mdadm/map when starting an
array with --incremental. However we now make more use of
that file (to pass the dev name to udev) so always update it.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mapfile.c')
-rw-r--r-- | mapfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -161,7 +161,8 @@ int map_update(struct map_ent **mpp, int devnum, char *metadata, } if (!mp) map_add(&map, devnum, metadata, uuid, path); - *mpp = NULL; + if (mpp) + *mpp = NULL; rv = map_write(map); map_free(map); return rv; |