diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-12-23 10:56:16 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-12-23 10:56:16 +0100 |
| commit | be5c2c81971442d623dd1b265dabf4644ceeb35b (patch) | |
| tree | fad1221fea5137be300e92a8475d92d8e1b47200 /sys/linux/dev_loop.txt | |
| parent | 4b042b7d6708cae4cb29fa41b89deea14b2eea32 (diff) | |
sys/linux: fix 32-bit warnings
Lots of interesting findings...
Especially 2 byte uid/gid/pid.
Update #590
Diffstat (limited to 'sys/linux/dev_loop.txt')
| -rw-r--r-- | sys/linux/dev_loop.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/linux/dev_loop.txt b/sys/linux/dev_loop.txt index 319c5f76f..7065d5c97 100644 --- a/sys/linux/dev_loop.txt +++ b/sys/linux/dev_loop.txt @@ -30,9 +30,10 @@ lo_flags = LO_FLAGS_READ_ONLY, LO_FLAGS_AUTOCLEAR, LO_FLAGS_PARTSCAN, LO_FLAGS_D loop_info { lo_number const[0, int32] - lo_device const[0, intptr] +# NEED: on amd64 lo_device/lo_rdevice (__kernel_old_dev_t) is long, on 386 it's short... + lo_device alignptr[const[0, int16]] lo_inode const[0, intptr] - lo_rdevice const[0, intptr] + lo_rdevice alignptr[const[0, int16]] lo_offset int32 lo_enc_type flags[lo_encrypt_type, int32] lo_enc_key_size int32[0:LO_KEY_SIZE] @@ -56,5 +57,5 @@ loop_info64 { lo_file_name array[int8, LO_NAME_SIZE] lo_crypt_name array[int8, LO_NAME_SIZE] lo_enc_key array[int8, LO_KEY_SIZE] - lo_init array[intptr, 2] + lo_init array[int64, 2] } |
