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)
commit3791e2fc0e4b40d4188e79b0a99bfa6bce714a10
tree2dc67f0593e1cb1f3dc07ff9883a03fe9edb4b2a
parent7f06965390e4a10fb6906c886324bfd0a96961be
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