diff options
author | Neil Brown <neilb@suse.de> | 2007-12-14 10:13:43 +0100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-12-14 10:13:43 +0100 |
commit | aba69144fd44fc261c943b0cec540751cfcd29bd (patch) | |
tree | 56aebc333f4ebf597efd556381470665ddc14c14 /Query.c | |
parent | A recent patch broke --create --level=faulty - fix it. (diff) | |
download | mdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.tar.xz mdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.zip |
Remove spaces/tabs from ends of lines.
Diffstat (limited to 'Query.c')
-rw-r--r-- | Query.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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; } - |