Skip to contentSkip to conversation

struct loop_info64

PATCH New Peter Chubb 1 participant 1 message Apr 23, 2003 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 struct loop_info64

In reply to a message not in the archive
Quoted 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