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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Jan 2012 23:07:24 +0000 (15:07 -0800)
commitec8013beddd717d1740cfefb1a9b900deef85462
tree7aa28de51cb2f375baf6fe943afd85e75ca7bcb9
parent0bfc96cb77224736dfa35c3c555d37b3646ef35e
dm: do not forward ioctls from logical volumes to the underlying device

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>
drivers/md/dm-flakey.c
drivers/md/dm-linear.c
drivers/md/dm-mpath.c