From aba69144fd44fc261c943b0cec540751cfcd29bd Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 14 Dec 2007 20:13:43 +1100 Subject: Remove spaces/tabs from ends of lines. --- Query.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Query.c') diff --git a/Query.c b/Query.c index 4cfcf578..e1743ef3 100644 --- a/Query.c +++ b/Query.c @@ -34,7 +34,7 @@ int Query(char *dev) { /* Give a brief description of the device, - * whether it is an md device and whether it has + * whether it is an md device and whether it has * a superblock */ int fd = open(dev, O_RDONLY, 0); @@ -62,7 +62,7 @@ int Query(char *dev) if (ioctl(fd, GET_ARRAY_INFO, &array)<0) ioctlerr = errno; else ioctlerr = 0; - + fstat(fd, &stb); if (vers>=9000 && !ioctlerr) { @@ -70,7 +70,7 @@ int Query(char *dev) larray_size = 0; } - if (vers < 0) + if (vers < 0) printf("%s: is not an md array\n", dev); else if (vers < 9000) printf("%s: is an md device, but kernel cannot provide details\n", dev); @@ -91,7 +91,7 @@ int Query(char *dev) if (st) { superror = st->ss->load_super(st, fd, &super, dev); superrno = errno; - } else + } else superror = -1; close(fd); if (superror == 0) { @@ -102,7 +102,7 @@ int Query(char *dev) disc.number = info.disk.number; activity = "undetected"; if (mddev && (fd = open(mddev, O_RDONLY))>=0) { - if (md_get_version(fd) >= 9000 && + if (md_get_version(fd) >= 9000 && ioctl(fd, GET_ARRAY_INFO, &array)>= 0) { if (ioctl(fd, GET_DISK_INFO, &disc) >= 0 && makedev((unsigned)disc.major,(unsigned)disc.minor) == stb.st_rdev) @@ -117,7 +117,7 @@ int Query(char *dev) mddev = "array"; } printf("%s: device %d in %d device %s %s %s. Use mdadm --examine for more detail.\n", - dev, + dev, info.disk.number, info.array.raid_disks, activity, map_num(pers, info.array.level), @@ -128,4 +128,3 @@ int Query(char *dev) return 0; } - -- cgit v1.2.3