struct loop_info64
PATCH 1/1 struct loop_info64
In reply to a message not in the archiveQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Andries" == Andries Brouwer <[email protected]> writes:
Andries> OK, upon general request, a shorter version. It has struct Andries> loop_info64 and __kernel_old_dev_t. Otherwise mostly as Andries> before.
Andries> Andries
While you're fixing this part of the interface, can you make the loop_info64 structure large-file and large-block-device safe?
+struct loop_info64 {
...
+ int lo_offset; loff_t lo_offset;
And for stuff transferred between user/kernel space, it's *usually* better not to use int or long, but to use explicitly-sized types, which allows, say, both 32 and 64-bit user spaces on top of a 64-bit kernel.
Peter C