diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 20:50:39 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 20:50:39 +1100 |
commit | 4ccad7b163fd5f210883d10b2fd36dcc90436b71 (patch) | |
tree | f11be238a1924e3cbb4813004c58601fc2030c34 /mdadm.h | |
parent | ac2ecf554303102ca23554a925fae91ac4fa57ca (diff) | |
download | mdadm-4ccad7b163fd5f210883d10b2fd36dcc90436b71.tar.gz mdadm-4ccad7b163fd5f210883d10b2fd36dcc90436b71.tar.xz mdadm-4ccad7b163fd5f210883d10b2fd36dcc90436b71.zip |
Manage: when stopping an array, delete all names from /dev.
This only applies if udev isn't installed or is disabled
by MDADM_NO_UDEV
We try to remove partitions too.
We find names to remove by looking in /var/run/mdadm/map
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -318,6 +318,7 @@ struct map_ent { extern int map_update(struct map_ent **mpp, int devnum, char *metadata, int uuid[4], char *path); extern struct map_ent *map_by_uuid(struct map_ent **map, int uuid[4]); +struct map_ent *map_by_devnum(struct map_ent **map, int devnum); extern void map_read(struct map_ent **melp); extern int map_write(struct map_ent *mel); extern void map_delete(struct map_ent **mapp, int devnum); |