summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 20:50:39 +1100
committerNeilBrown <neilb@suse.de>2008-11-04 20:50:39 +1100
commit4ccad7b163fd5f210883d10b2fd36dcc90436b71 (patch)
treef11be238a1924e3cbb4813004c58601fc2030c34 /mdadm.h
parentac2ecf554303102ca23554a925fae91ac4fa57ca (diff)
downloadmdadm-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index c34efe9..dd33116 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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);