linux-stable-rt/drivers/block
Constantine Sapuntzakis eefe85ee35 [PATCH] drivers/block/loop.c: don't return garbage if LOOP_SET_STATUS not called
While writing a version of losetup, I ran into the problem that the loop
device was returning total garbage.

It turns out the problem was that this losetup was only issuing the
LOOP_SET_FD ioctl and not issuing a subsequent LOOP_SET_STATUS ioctl.  This
losetup didn't have any special status to set, so it left out the call.

The deeper cause is that loop_set_fd sets the transfer function to NULL,
which causes no transfer to happen lo_do_transfer.

This patch fixes the problem by setting transfer to transfer_none in
loop_set_fd.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-23 07:43:09 -07:00
..
aoe
paride
DAC960.c
DAC960.h
Kconfig [PATCH] frv: initrd is grossly broken on frv (never built) 2006-06-23 07:42:55 -07:00
Makefile
acsi.c
acsi_slm.c
amiflop.c
ataflop.c
cciss.c
cciss.h
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cpqarray.c
cpqarray.h
cryptoloop.c
floppy.c
ida_cmd.h
ida_ioctl.h
loop.c [PATCH] drivers/block/loop.c: don't return garbage if LOOP_SET_STATUS not called 2006-06-23 07:43:09 -07:00
nbd.c
pktcdvd.c
ps2esdi.c
rd.c
smart1,2.h
swim3.c
swim_iop.c
sx8.c
ub.c [PATCH] ub: random cleanups 2006-06-21 15:04:14 -07:00
umem.c
viodasd.c
xd.c
xd.h
z2ram.c