mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: support for offset > 2GB on x86 in losetup needed
@ 2002-09-17 12:33 Matthew Wilcox
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2002-09-17 12:33 UTC (permalink / raw)
  To: Vlad Harchev; +Cc: linux-kernel


Hi, Vlad

You wrote:
> Currently linux-2.4 on x86 doesn't allow to use offsets greater than 2GB
> for losetup utility. Looking at the code, it turns out that the kernel is
> guilty - linux kernel doesn't allow offsets greater than 2Gb since it uses
> 32-bit wide signed (why signed?) integer for storing the offset on x86..
>
> That's a very severe limitation IMHO, it would be very nice to fix this in
> 2.5 at least (but it would be better to fix it in 2.4 of course :).

That's right, the current ioctl API passes an `int' between userspace
and the kernel.  I'm currently working on a major rewrite of this code,
based on suggestions by Al Viro.

The new API will be:

mount -t loop -o offset=1234567890,rw foo.iso /dev/loop0

However I only started on this code last week, so I'm not quite done yet ;-)

Currently unsolved problem: encryption.  I'm certain people are not
comfortable supplying their keys on the command line, available to
anyone using ps.  So one option would be a 'key=file' option, but that
doesn't allow people to protect that with a passphrase (people _do_
use that feature, right?).  Next option is a `keyfd=N', but then we
need a losetup program, which invokes mount(2) rather than an ioctl.
Perhaps that's acceptable.

Other bright ideas urgently sought ;-)

-- 
Revolutions do not require corporate support.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* support for offset > 2GB on x86 in losetup needed
@ 2002-09-17  8:29 Vlad Harchev
  0 siblings, 0 replies; 2+ messages in thread
From: Vlad Harchev @ 2002-09-17  8:29 UTC (permalink / raw)
  To: linux-kernel


 Hello, 

 Currently linux-2.4 on x86  doesn't allow to use offsets greater than 2GB
for losetup utility. Looking at the code, it turns out that the kernel is
guilty - linux kernel doesn't allow offsets greater than 2Gb since it uses
32-bit wide signed (why signed?) integer for storing the offset on x86..

 That's a very severe limitation IMHO, it would be very nice to fix this in
2.5 at least (but it would be better to fix it in 2.4 of course :).

 What do you think about this?

PS: I'm not on the list, so please cc replies to me.

 Best regards,
  -Vlad



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-17 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 12:33 support for offset > 2GB on x86 in losetup needed Matthew Wilcox
  -- strict thread matches above, loose matches on Subject: below --
2002-09-17  8:29 Vlad Harchev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®