search for: info64

Displaying 2 results from an estimated 2 matches for "info64".

2019 Nov 05
0
[klibc:master] losetup: Delete fallbacks to LOOP_{GET, SET}_STATUS
...------------- 1 file changed, 2 insertions(+), 63 deletions(-) diff --git a/usr/utils/losetup.c b/usr/utils/losetup.c index 1f50a001..5d328138 100644 --- a/usr/utils/losetup.c +++ b/usr/utils/losetup.c @@ -33,39 +33,8 @@ void xstrncpy(char *dest, const char *src, size_t n) } -static int loop_info64_to_old(const struct loop_info64 *info64, struct loop_info *info) -{ - memset(info, 0, sizeof(*info)); - info->lo_number = info64->lo_number; - info->lo_device = info64->lo_device; - info->lo_inode = info64->lo_inode; - info->lo_rdevice = info64->lo_rdevice; - info->lo_off...
2010 Mar 14
0
[patches] klibc review unsorted patch queue
...lags; + char lo_name[LO_NAME_SIZE]; + unsigned char lo_encrypt_key[LO_KEY_SIZE]; + unsigned long lo_init[2]; + char reserved[4]; +}; + +/* + * Where to get __u8, __u32, __u64? Let us use unsigned char/int/long long + * and get punished when someone comes with 128-bit long longs. + */ +struct loop_info64 { + unsigned long long lo_device; + unsigned long long lo_inode; + unsigned long long lo_rdevice; + unsigned long long lo_offset; + unsigned long long lo_sizelimit; /* bytes, 0 == max available */ + unsigned int lo_number; + unsigned int lo_encrypt_type; + unsigned int lo_encrypt_key_size; + uns...