]> git.baikalelectronics.ru Git - kernel.git/commit
dm table: add singleton feature
authorAlasdair G Kergon <agk@redhat.com>
Mon, 31 Oct 2011 20:19:00 +0000 (20:19 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 31 Oct 2011 20:19:00 +0000 (20:19 +0000)
commitaf4012e7f631096a4f0615448fc0eb92e317fbee
tree2dc67f0593e1cb1f3dc07ff9883a03fe9edb4b2a
parent562b850939c2bb673143a226b3c7b5d9458ede60
dm table: add singleton feature

Introduce the concept of a singleton table which contains exactly one target.

If a target type sets the DM_TARGET_SINGLETON feature bit device-mapper
will ensure that any table that includes that target contains no others.

The thin provisioning pool target uses this.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c
include/linux/device-mapper.h