]> git.pld-linux.org Git - packages/dietlibc.git/blame - dietlibc-loop.patch
- release 17 (by relup.sh)
[packages/dietlibc.git] / dietlibc-loop.patch
CommitLineData
73fa023b
AM
1--- dietlibc-0.32/include/linux/loop.h~ 2003-08-19 18:58:18.000000000 +0200
2+++ dietlibc-0.32/include/linux/loop.h 2011-05-30 16:50:15.748100072 +0200
b978b321
AM
3@@ -30,6 +30,22 @@
4 char reserved[4];
5 };
6
7+struct loop_info64 {
8+ __u64 lo_device; /* ioctl r/o */
9+ __u64 lo_inode; /* ioctl r/o */
10+ __u64 lo_rdevice; /* ioctl r/o */
11+ __u64 lo_offset;
12+ __u64 lo_sizelimit;/* bytes, 0 == max available */
13+ __u32 lo_number; /* ioctl r/o */
14+ __u32 lo_encrypt_type;
15+ __u32 lo_encrypt_key_size; /* ioctl w/o */
16+ __u32 lo_flags; /* ioctl r/o */
17+ __u8 lo_file_name[LO_NAME_SIZE];
18+ __u8 lo_crypt_name[LO_NAME_SIZE];
19+ __u8 lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */
20+ __u64 lo_init[2];
21+};
22+
23 /* Loop filter types */
24 #define LO_CRYPT_NONE 0
25 #define LO_CRYPT_XOR 1
73fa023b
AM
26@@ -40,6 +40,7 @@
27 #define LO_CRYPT_IDEA 6
28 #define LO_CRYPT_DUMMY 9
29 #define LO_CRYPT_SKIPJACK 10
30+#define LO_CRYPT_CRYPTOAPI 18
31 #define MAX_LO_CRYPT 20
32
33 /* IOCTL commands --- we will commandeer 0x4C ('L') */
34@@ -47,6 +48,12 @@
35 #define LOOP_CLR_FD 0x4C01
36 #define LOOP_SET_STATUS 0x4C02
37 #define LOOP_GET_STATUS 0x4C03
38+#define LOOP_SET_STATUS 0x4C02
39+#define LOOP_GET_STATUS 0x4C03
40+#define LOOP_SET_STATUS64 0x4C04
41+#define LOOP_GET_STATUS64 0x4C05
42+#define LOOP_CHANGE_FD 0x4C06
43+#define LOOP_SET_CAPACITY 0x4C07
44
45 __END_DECLS
46
This page took 0.081409 seconds and 4 git commands to generate.