summaryrefslogtreecommitdiff
path: root/mdopen.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 10:35:10 +1100
committerNeilBrown <neilb@suse.de>2008-11-04 10:35:10 +1100
commit2399204dddcabcf629ccb57be1957010444fc0ea (patch)
tree904724601601e30612bc048ae63bdc39756bf1b3 /mdopen.c
parentaef35714a4e86d6e19af9eb2672b7cbcb041c9cb (diff)
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 <neilb@suse.de>
Diffstat (limited to 'mdopen.c')
-rw-r--r--mdopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdopen.c b/mdopen.c
index eee1eea1..51568359 100644
--- a/mdopen.c
+++ b/mdopen.c
@@ -106,7 +106,7 @@ void make_parts(char *dev, int cnt, int symlinks)
* If it now doesn't exist, we find a new md array and create the device.
* Default ownership/mode comes from config file.
*/
-int open_mddev(char *dev, int autof)
+int create_mddev(char *dev, int autof)
{
int mdfd;
struct stat stb;
@@ -268,7 +268,7 @@ int open_mddev(char *dev, int autof)
}
-int open_mddev_devnum(char *devname, int devnum, char *name,
+int create_mddev_devnum(char *devname, int devnum, char *name,
char *chosen_name, int parts)
{
/* Open the md device with number 'devnum', possibly using 'devname',