Milan Broz e90dae1f58 [PATCH] dm: support ioctls on mapped devices: fix with fake file
The new ioctl code passes the wrong file pointer to the underlying device.
No file pointer is available so make a temporary fake one.

ioctl_by_bdev() does set_fs(KERNEL_DS) so it's for ioctls originating
within the kernel and unsuitable here.  We are processing ioctls that
originated in userspace and mapping them to different devices.  Fixing the
existing callers that pass a NULL file struct and consolidating the
fake_file users are separate matters to solve in later patches.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-03 08:04:13 -07:00
..
2006-10-03 08:04:06 -07:00
2006-10-03 08:03:41 -07:00
2006-10-01 00:39:17 -07:00
2006-10-01 10:39:01 -07:00
2006-10-02 07:57:14 -07:00
2006-07-12 15:38:28 -07:00
2006-08-10 07:31:37 -04:00
2006-08-10 07:31:37 -04:00