/dev/loop0 offset doen't work on /dev/scd0

Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Thu, 22 Apr 1999 10:49:42 +0200


why isn't it possible to use

# losetup -o 2048 /dev/loop0 /dev/scd0
ioctl: LOOP_SET_STATUS: Invalid argument

without `-o 2048' the loopback works fine (but is useless because I need to skip
the first sector;). strace shows:

# strace losetup -o 2048 /dev/loop0 /dev/scd0
...
open("/dev/scd0", O_RDWR) = -1 EROFS (Read-only file system)
open("/dev/scd0", O_RDONLY) = 3
open("/dev/loop0", O_RDONLY) = 4
ioctl(4, LOOP_SET_FD, 0x3) = 0
ioctl(4, LOOP_SET_STATUS, 0xbffff500) = -1 EINVAL (Invalid argument)
ioctl(4, LOOP_CLR_FD, 0) = 0
write(2, "ioctl: LOOP_SET_STATUS: Invalid "..., 41ioctl: LOOP_SET_STATUS: Invalid argument) = 41

Harald

--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/