mirror of https://github.com/torvalds/linux.git
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> |
||
|---|---|---|
| .. | ||
| aoe | ||
| paride | ||
| DAC960.c | ||
| DAC960.h | ||
| Kconfig | ||
| 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 | ||
| nbd.c | ||
| pktcdvd.c | ||
| ps2esdi.c | ||
| rd.c | ||
| smart1,2.h | ||
| swim3.c | ||
| swim_iop.c | ||
| sx8.c | ||
| ub.c | ||
| umem.c | ||
| viodasd.c | ||
| xd.c | ||
| xd.h | ||
| z2ram.c | ||