|
Revision b0ac906b283b428ba1c7f35fe1e71a84b3d3d9c6, 1.1 KB
(checked in by Paulo Alcantara <pcacjr@…>, 8 months ago)
|
|
Add NTFS filesystem support to Linux and Windows installers
Signed-off-by: Paulo Alcantara <pcacjr@…>
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * linuxioctl.h |
|---|
| 3 | * |
|---|
| 4 | * Wrapper for Linux ioctl definitions, including workarounds |
|---|
| 5 | */ |
|---|
| 6 | |
|---|
| 7 | #ifndef LIBINSTALLER_LINUXIOCTL_H |
|---|
| 8 | #define LIBINSTALLER_LINUXIOCTL_H |
|---|
| 9 | |
|---|
| 10 | #include <sys/ioctl.h> |
|---|
| 11 | |
|---|
| 12 | #define statfs _kernel_statfs /* HACK to deal with broken 2.4 distros */ |
|---|
| 13 | |
|---|
| 14 | #include <linux/fd.h> /* Floppy geometry */ |
|---|
| 15 | #include <linux/hdreg.h> /* Hard disk geometry */ |
|---|
| 16 | |
|---|
| 17 | #include <linux/fs.h> /* FIGETBSZ, FIBMAP, FS_IOC_FIEMAP */ |
|---|
| 18 | |
|---|
| 19 | #undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */ |
|---|
| 20 | #undef SECTOR_BITS |
|---|
| 21 | #include <linux/ext2_fs.h> /* EXT2_IOC_* */ |
|---|
| 22 | |
|---|
| 23 | #ifndef FAT_IOCTL_GET_ATTRIBUTES |
|---|
| 24 | # define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32) |
|---|
| 25 | #endif |
|---|
| 26 | |
|---|
| 27 | #define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, __u32) |
|---|
| 28 | |
|---|
| 29 | #include <linux/fiemap.h> /* FIEMAP definitions */ |
|---|
| 30 | |
|---|
| 31 | #ifndef FS_IOC_FIEMAP |
|---|
| 32 | # define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap) |
|---|
| 33 | #endif |
|---|
| 34 | |
|---|
| 35 | #undef statfs |
|---|
| 36 | |
|---|
| 37 | #if defined(__linux__) && !defined(BLKGETSIZE64) |
|---|
| 38 | /* This takes a u64, but the size field says size_t. Someone screwed big. */ |
|---|
| 39 | # define BLKGETSIZE64 _IOR(0x12,114,size_t) |
|---|
| 40 | #endif |
|---|
| 41 | |
|---|
| 42 | #include <linux/loop.h> |
|---|
| 43 | |
|---|
| 44 | #endif /* LIBINSTALLER_LINUXIOCTL_H */ |
|---|