summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2002-03-20 23:39:50 +0100
committerNeil Brown <neilb@suse.de>2002-03-20 23:39:50 +0100
commit11a3e71da434939895cc504e20e735eb656b1c74 (patch)
tree96e43f983f95a1db8ab74550ce90d855bf1511bd /Detail.c
parentmdadm-0.7.1 (diff)
downloadmdadm-11a3e71da434939895cc504e20e735eb656b1c74.tar.xz
mdadm-11a3e71da434939895cc504e20e735eb656b1c74.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 3fefc47a..50828270 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;