From 2399204dddcabcf629ccb57be1957010444fc0ea Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 4 Nov 2008 10:35:10 +1100 Subject: Rename open_mddev to create_mddev This reflect that fact that more often than not it is creating things in /dev, and allows for a new open_mddev which does just that. Signed-off-by: NeilBrown --- Assemble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index 526b1d5..fa534fd 100644 --- a/Assemble.c +++ b/Assemble.c @@ -437,7 +437,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, if (mdfd < 0) { /* So... it is up to me to open the device. * We create a name '/dev/md/XXX' based on the info in the - * superblock, and call open_mddev on that + * superblock, and call create_mddev on that */ mdu_array_info_t inf; char *c; @@ -462,7 +462,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, if (rc < 0) mdfd = -1; else - mdfd = open_mddev(mddev, ident->autof); + mdfd = create_mddev(mddev, ident->autof); if (mdfd < 0) { st->ss->free_super(st); free(devices); -- cgit