dm - Disallow active vol removal; ret err of ioctl cmd
authorAlex Hornung <ahornung@gmail.com>
Fri, 19 Nov 2010 07:01:11 +0000 (07:01 +0000)
committerAlex Hornung <ahornung@gmail.com>
Fri, 19 Nov 2010 07:01:11 +0000 (07:01 +0000)
commit956c8d716bb0166e3061a37d96d0415ef44f564c
tree62519d6d5cdf8562ab322f416e5ee68300968599
parentfa419eae4a49555341b4ec93d45ac2f1ed37f8b9
dm - Disallow active vol removal; ret err of ioctl cmd

* Disallow the removal of volumes that are currently in use (determined
  by whether they are open or not).

* Return the error of the actual ioctl command that was executed and not
  of some prop copyout.

Reported-by: Sascha Wildner
sys/dev/disk/dm/device-mapper.c
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/dm_ioctl.c