git: dm - Disallow active vol removal; ret err of ioctl cmd

Alex Hornung alexh at crater.dragonflybsd.org
Thu Nov 18 23:48:35 PST 2010


commit 956c8d716bb0166e3061a37d96d0415ef44f564c
Author: Alex Hornung <ahornung at gmail.com>
Date:   Fri Nov 19 07:01:11 2010 +0000

    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

Summary of changes:
 sys/dev/disk/dm/device-mapper.c |   39 +++++++++++++++++++++++++++++++++++----
 sys/dev/disk/dm/dm.h            |    1 +
 sys/dev/disk/dm/dm_ioctl.c      |    6 ++++++
 3 files changed, 42 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/956c8d716bb0166e3061a37d96d0415ef44f564c


-- 
DragonFly BSD source repository





More information about the Commits mailing list