diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 20:51:12 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 20:51:12 +1100 |
commit | f2e55eccfb92969c3e11bc5d4883315f2e866a14 (patch) | |
tree | 41d9383f638fa80ca94f8b79afe8bceb9adca1cd /mdassemble.c | |
parent | f05641cf7a250bda189f16d9c6b917683e5c9aad (diff) | |
download | mdadm-f2e55eccfb92969c3e11bc5d4883315f2e866a14.tar.gz mdadm-f2e55eccfb92969c3e11bc5d4883315f2e866a14.tar.xz mdadm-f2e55eccfb92969c3e11bc5d4883315f2e866a14.zip |
mdopen: use small sequence number for uniquifying array names.
Rather than appending the md minor number, we now append a small
sequence number to make sure name in /dev/md/ that aren't LOCAL are
unique. As the map file is locked while we do this, we are sure
of no losing any races.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdassemble.c')
-rw-r--r-- | mdassemble.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mdassemble.c b/mdassemble.c index 02afc2d..a680378 100644 --- a/mdassemble.c +++ b/mdassemble.c @@ -84,6 +84,10 @@ int map_update(struct map_ent **mpp, int devnum, char *metadata, { return 0; } +struct map_ent *map_by_name(struct map_ent **mpp, char *name) +{ + return NULL; +} int rv; int mdfd = -1; |