diff options
author | Karel Zak | 2010-03-10 15:41:40 +0100 |
---|---|---|
committer | Karel Zak | 2010-03-10 15:41:40 +0100 |
commit | 3069624180bac35f1cd468249ddb9dfc91d1b7b1 (patch) | |
tree | 7bc8f8ed5fa6ca4bd95530156b1073072c894a0b /include/blkdev.h | |
parent | libblkid: reset BLKID_TINY_DEV flag in blkid_probe_set_device (diff) | |
download | kernel-qcow2-util-linux-3069624180bac35f1cd468249ddb9dfc91d1b7b1.tar.gz kernel-qcow2-util-linux-3069624180bac35f1cd468249ddb9dfc91d1b7b1.tar.xz kernel-qcow2-util-linux-3069624180bac35f1cd468249ddb9dfc91d1b7b1.zip |
liblkid: move getsize.c code to lib/
.. and cleanup blkdev_get_size() usage in libblkid.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r-- | include/blkdev.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/blkdev.h b/include/blkdev.h index 56a9c1f47..98efad681 100644 --- a/include/blkdev.h +++ b/include/blkdev.h @@ -34,7 +34,11 @@ #define BLKBSZSET _IOW(0x12,113,size_t) #define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (u64 *arg) */ -#endif /* BLKROSET */ +#endif /* BLKROSET && __linux__ */ + +#ifdef APPLE_DARWIN +#define BLKGETSIZE DKIOCGETBLOCKCOUNT32 +#endif /* block device topology ioctls, introduced in 2.6.32 */ #ifndef BLKIOMIN |