Re: Mount loop device error with dazukofs: ioctl: LOOP_SET_FD: Invalid argument
John Ogness <[email protected]> Sun, 22 Mar 2009 14:50:39 +0100
| Newsgroups | gmane.linux.dazuko.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2009-03-19, Александр Корков <[email protected]> wrote: > Hi, I can't mount iso images. > > to reproduce: > > $ sudo modprobe dazukofs > $ sudo mount -t dazukofs ./dazukofs_test/ ./dazukofs_test/ > $ sudo mount -o loop ./dazukofs_test/debian-500-i386-DVD-1.iso /tmp/a > ioctl: LOOP_SET_FD: Invalid argument > > I use: > DazukoFS 3.0.0 > Linux version 2.6.20.4-486 (root@alexander) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 Sat Oct 20 16:29:17 MSD 2007 The patch for Linux 2.6.20 includes an extra check that only allows directories to be mounted. You can find this check in super.c, the function dazukofs_read_super(). if (!S_ISDIR(lower_root->d_inode->i_mode)) { err = -ENOENT; goto out_put; } If you remove this check, you should be able to mount ISO images without a problem. John Ogness -- Dazuko Maintainer