2003-02-11 22:07:28

by Siim Vahtre

[permalink] [raw]
Subject: unable to mount 'remote' loopback block devices


Hi,

When I try to mount a 'remote' image (on NFS/samba share) I get
"ioctl: LOOP_SET_FD: Inappropriate ioctl for device"

However, when I copy that same image to local hd, it works.

2.5.59 and 2.5.60 both have the same problem, 2.4 was OK.


2003-02-12 20:28:40

by Andrew Morton

[permalink] [raw]
Subject: Re: unable to mount 'remote' loopback block devices

Siim Vahtre <[email protected]> wrote:
>
>
> Hi,
>
> When I try to mount a 'remote' image (on NFS/samba share) I get
> "ioctl: LOOP_SET_FD: Inappropriate ioctl for device"
>
> However, when I copy that same image to local hd, it works.
>
> 2.5.59 and 2.5.60 both have the same problem, 2.4 was OK.

This broke when the loop driver was converted to use the backing
filesystems's sendfile operation. NFS, SMBFS and CIFS (at least) do not
implement sendfile, so none of them can now be looped upon.

Trond says we can get NFS sendfile working pretty easily. As for the others,
we may need to revert the loop change.