aboutsummaryrefslogtreecommitdiffstats
path: root/libinstaller
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-06-26 21:22:48 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-06-26 21:22:48 -0700
commit92e6edabf7661a9fa9a7e7985d4fc37bf3cda649 (patch)
treed5bdc1256f6a454d0ffcea8ce8069032350ada03 /libinstaller
parent03791432c7207da9eb6c898bf15f003ab92ff10e (diff)
downloadsyslinux-92e6edabf7661a9fa9a7e7985d4fc37bf3cda649.tar.gz
syslinux-92e6edabf7661a9fa9a7e7985d4fc37bf3cda649.tar.xz
syslinux-92e6edabf7661a9fa9a7e7985d4fc37bf3cda649.zip
extlinux: set bsHidden for loop devices
If we are on a loop device, set bsHidden based on the loopback device offset. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'libinstaller')
-rw-r--r--libinstaller/linuxioctl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libinstaller/linuxioctl.h b/libinstaller/linuxioctl.h
index e4284df7..7ef919a3 100644
--- a/libinstaller/linuxioctl.h
+++ b/libinstaller/linuxioctl.h
@@ -37,4 +37,11 @@
#undef statfs
+#if defined(__linux__) && !defined(BLKGETSIZE64)
+/* This takes a u64, but the size field says size_t. Someone screwed big. */
+# define BLKGETSIZE64 _IOR(0x12,114,size_t)
+#endif
+
+#include <linux/loop.h>
+
#endif /* LIBINSTALLER_LINUXIOCTL_H */