diff options
author | Neil Brown <neilb@suse.de> | 2005-06-14 08:37:57 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-06-14 08:37:57 +0200 |
commit | 173fc51539683030178a8f833281c787b1933ffd (patch) | |
tree | 87c64d23442729edcd62a2afbade24eed1c1b2b8 /mdopen.c | |
parent | Allow --force flag with --grow (diff) | |
download | mdadm-173fc51539683030178a8f833281c787b1933ffd.tar.xz mdadm-173fc51539683030178a8f833281c787b1933ffd.zip |
Add device files created with --auto to list of known device files.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'mdopen.c')
-rw-r--r-- | mdopen.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -66,6 +66,8 @@ void make_parts(char *dev, int cnt) mknod(name, S_IFBLK | 0600, makedev(major, minor+i)); chown(name, stb2.st_uid, stb2.st_gid); chmod(name, stb2.st_mode & 07777); + stat(name, &stb2); + add_dev(name, &stb2, 0, NULL); } } @@ -205,6 +207,8 @@ int open_mddev(char *dev, int autof) chown(dev, stb.st_uid, stb.st_gid); chmod(dev, stb.st_mode & 07777); } + stat(dev, &stb); + add_dev(dev, &stb, 0, NULL); make_parts(dev,autof); } } |