From 16c6fa807c1e43a1a12bbeb7668b4166d14b2cc8 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 28 Mar 2006 06:26:53 +0000 Subject: Create missing /dev files where needed. Whenever we need a device file to open, if one cannot be found in /dev, create a temporary one. Signed-off-by: Neil Brown --- Detail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Detail.c') diff --git a/Detail.c b/Detail.c index a1139335..d322732c 100644 --- a/Detail.c +++ b/Detail.c @@ -105,12 +105,12 @@ int Detail(char *dev, int brief, int test) disk.major == 0 && disk.minor == 0) continue; - if ((dv=map_dev(disk.major, disk.minor))) { + if ((dv=map_dev(disk.major, disk.minor, 1))) { if (!super && (disk.state & (1<=0 && st && st->ss->load_super(st, fd2, &super, NULL) == 0) { struct mdinfo info; @@ -307,7 +307,7 @@ int Detail(char *dev, int brief, int test) rv |= 2; rv |= 1; } - if ((dv=map_dev(disk.major, disk.minor))) { + if ((dv=map_dev(disk.major, disk.minor, 0))) { if (brief) { if (devices) { devices = realloc(devices, -- cgit v1.2.3