]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm: do not forward ioctls from logical volumes to the underlying device
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Jan 2012 15:01:29 +0000 (16:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:54 +0000 (17:24 -0800)
commit12c3b3ac1e8004616b30aec6acee1bb91badeb99
treed24f4e641e1084f234fc3eb32df23b734e2d99c7
parent8bd8442fec18284924e17a0fa8ef89d98b0a6d71
dm: do not forward ioctls from logical volumes to the underlying device

commit ec8013beddd717d1740cfefb1a9b900deef85462 upstream.

A logical volume can map to just part of underlying physical volume.
In this case, it must be treated like a partition.

Based on a patch from Alasdair G Kergon.

Cc: Alasdair G Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-flakey.c
drivers/md/dm-linear.c
drivers/md/dm-mpath.c