2001-07-22 20:45:18

by Jonathan Picht

[permalink] [raw]
Subject: PROBLEM: loopback mount doesn't work with files on shm filesystem

Hello,

if I try to mount a file which resides on shm with '-o loop',
I get this output:

ioctl: LOOP_SET_FD: Invalid argument

cat /proc/version:
Linux version 2.4.7 (root@lithium) (gcc version 2.95.4 20010703 (Debian prerelease)) #1 Sam Jul 21 19:23:47 CEST 2001

sh scripts/ver_linux:
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux lithium 2.4.7 #1 Sam Jul 21 19:23:47 CEST 2001 i686 unknown

Gnu C 2.95.4
Gnu make 3.79.1
binutils 2.11.90.0.24
util-linux 2.11g
mount 2.11g
modutils 2.4.6
e2fsprogs 1.22
reiserfsprogs 3.x.0j
PPP 2.4.1
Linux C Library 2.2.3
Dynamic linker (ldd) 2.2.3
Procps 2.0.7
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 2.0.11
Modules Loaded

I'm running Debian/unstable on a Athlon 600 with 192MB ram.
If you need more information, don't hesitate to ask.

Thank you,

Jonathan

ps: Please cc to me in replies, since I'm not subscribed to the list.


2001-07-23 08:35:25

by Christoph Rohland

[permalink] [raw]
Subject: Re: PROBLEM: loopback mount doesn't work with files on shm filesystem

Hi Jonathan,

On Sun, 22 Jul 2001, Jonathan Picht wrote:
> Hello,
>
> if I try to mount a file which resides on shm with '-o loop',
> I get this output:
>
> ioctl: LOOP_SET_FD: Invalid argument

Yes, loopback does not work on tmpfs and is not easy to implement.

Greetings
Christoph