summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2002-03-20 22:39:50 +0000
committerNeil Brown <neilb@suse.de>2002-03-20 22:39:50 +0000
commit11a3e71da434939895cc504e20e735eb656b1c74 (patch)
tree96e43f983f95a1db8ab74550ce90d855bf1511bd /Detail.c
parent56eb10c0b6e8f21540af444c8a28aa9e8f138ce6 (diff)
downloadmdadm-0.7.2.tar.gz
mdadm-0.7.2.tar.xz
mdadm-0.7.2.zip
mdadm-0.7.2mdadm-0.7.2
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Detail.c b/Detail.c
index 3fefc47..5082827 100644
--- a/Detail.c
+++ b/Detail.c
@@ -83,9 +83,12 @@ int Detail(char *dev, int brief)
else {
long array_size;
long long larray_size;
+#ifdef BLKGETSIZE64
if (ioctl(fd, BLKGETSIZE64, &larray_size)==0)
;
- else if (ioctl(fd, BLKGETSIZE, &array_size)==0)
+ else
+#endif
+ if (ioctl(fd, BLKGETSIZE, &array_size)==0)
larray_size = array_size<<9;
else larray_size = 0;