]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:10:44 +0000 (16:10 -0500)
commita11a914060471392c91a7f92fc334df220abdf64
treed6b50c0c3dbe14dc7aac46a1ffc7193b64b0a258
parent444f3ec5479aa771543435351460ac06eca0aeb0
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>
[PG: drop drivers/md/dm-flakey.c chunk; file not present in 2.6.34]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/md/dm-linear.c
drivers/md/dm-mpath.c