From 1686dc25ecf60a9b7691d73fc2b5a7e08184c940 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 14 Dec 2007 20:14:38 +1100 Subject: Find super from fd on an array. We used to use the major/minor numbers, but that isn't sufficient any more, so pass the fd, and possibly check 'text' version. --- Detail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Detail.c') diff --git a/Detail.c b/Detail.c index 2bde9fab..5a408ec0 100644 --- a/Detail.c +++ b/Detail.c @@ -88,7 +88,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) close(fd); return rv; } - st = super_by_version(array.major_version, array.minor_version); + st = super_by_fd(fd); if (fstat(fd, &stb) != 0 && !S_ISBLK(stb.st_mode)) stb.st_rdev = 0; -- cgit v1.2.3