told linux - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 76e6aca867e3e48ea04fbcf7284c45369a69829e
DIR parent 7f596de86a64c36b6f0804baeca4f2c9d79af396
HTML Author: rsc <devnull@localhost>
Date: Sat, 15 May 2004 23:16:38 +0000
old linux
Diffstat:
M src/lib9/_p9dir.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c
t@@ -53,8 +53,10 @@ disksize(int fd, int dev)
long l;
struct hd_geometry geo;
+#ifdef BLKGETSIZE64
if(ioctl(fd, BLKGETSIZE64, &u64) >= 0)
return u64;
+#endif
if(ioctl(fd, BLKGETSIZE, &l) >= 0)
return l*512;
if(ioctl(fd, HDIO_GETGEO, &geo) >= 0)