]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] dm table: add target preresume
authorMilan Broz <mbroz@redhat.com>
Tue, 3 Oct 2006 08:15:36 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:15 +0000 (08:04 -0700)
commit3b3b0240da72323a2aa5bc01ef4c52def64b509e
treec91b00ace6ee438a9e447bce311808a698e9d487
parent070e188b65db25021e46669d418798b71864d637
[PATCH] dm table: add target preresume

This patch adds a target preresume hook.

It is called before the targets are resumed and if it returns an error the
resume gets cancelled.

The crypt target will use this to indicate that it is unable to process I/O
because no encryption key has been supplied.

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>
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h
include/linux/device-mapper.h
include/linux/dm-ioctl.h