Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/utils/loop.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1122 - (hide annotations) (download)
Wed Aug 18 21:11:40 2010 UTC (13 years, 9 months ago) by niro
File MIME type: text/plain
File size: 1265 byte(s)
-updated to klibc-1.5.19
1 niro 1122 #define LO_CRYPT_NONE 0
2     #define LO_CRYPT_XOR 1
3     #define LO_CRYPT_DES 2
4     #define LO_CRYPT_CRYPTOAPI 18
5    
6     #define LOOP_SET_FD 0x4C00
7     #define LOOP_CLR_FD 0x4C01
8     #define LOOP_SET_STATUS 0x4C02
9     #define LOOP_GET_STATUS 0x4C03
10     #define LOOP_SET_STATUS64 0x4C04
11     #define LOOP_GET_STATUS64 0x4C05
12    
13     #define LO_NAME_SIZE 64
14     #define LO_KEY_SIZE 32
15    
16     struct loop_info {
17     int lo_number;
18     dev_t lo_device;
19     unsigned long lo_inode;
20     dev_t lo_rdevice;
21     int lo_offset;
22     int lo_encrypt_type;
23     int lo_encrypt_key_size;
24     int lo_flags;
25     char lo_name[LO_NAME_SIZE];
26     unsigned char lo_encrypt_key[LO_KEY_SIZE];
27     unsigned long lo_init[2];
28     char reserved[4];
29     };
30    
31     /*
32     * Where to get __u8, __u32, __u64? Let us use unsigned char/int/long long
33     * and get punished when someone comes with 128-bit long longs.
34     */
35     struct loop_info64 {
36     unsigned long long lo_device;
37     unsigned long long lo_inode;
38     unsigned long long lo_rdevice;
39     unsigned long long lo_offset;
40     unsigned long long lo_sizelimit; /* bytes, 0 == max available */
41     unsigned int lo_number;
42     unsigned int lo_encrypt_type;
43     unsigned int lo_encrypt_key_size;
44     unsigned int lo_flags;
45     char lo_file_name[LO_NAME_SIZE];
46     char lo_crypt_name[LO_NAME_SIZE];
47     char lo_encrypt_key[LO_KEY_SIZE];
48     unsigned long long lo_init[2];
49     };