diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 10:50:21 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 10:50:21 +0100 |
commit | 69207ff6ac9d905c096597de4f37ff9524265d9b (patch) | |
tree | dbdfd6618c5fff17b171a86b41acb272ed77df53 /Create.c | |
parent | util: make env checking more generic (diff) | |
download | mdadm-69207ff6ac9d905c096597de4f37ff9524265d9b.tar.xz mdadm-69207ff6ac9d905c096597de4f37ff9524265d9b.zip |
mdopen: Introduce new rules for creating device name.
MORE CONTENT HERE
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -421,7 +421,7 @@ int Create(struct supertype *st, char *mddev, } /* We need to create the device */ - mdfd = create_mddev(mddev, autof); + mdfd = create_mddev(mddev, name, autof, LOCAL, NULL); if (mdfd < 0) return 1; @@ -514,6 +514,7 @@ int Create(struct supertype *st, char *mddev, * /dev/md/home -> home * /dev/mdhome -> home */ + /* FIXME compare this with rules in create_mddev */ name = strrchr(mddev, '/'); if (name) { name++; |