git: dm - add remove_all, refactor

Alex Hornung alexh at crater.dragonflybsd.org
Mon Dec 13 15:08:30 PST 2010


commit 9fada28acfffd04235bc0396c7244d25df88b68c
Author: Alex Hornung <ahornung at gmail.com>
Date:   Mon Dec 13 18:17:08 2010 +0000

    dm - add remove_all, refactor
    
    * Refactor the dm dev creation and removal methods as to avoid
      duplication and, as a bonus, do things properly.
    
    * Rename foo_destroy to foo_uninit, because that's what they really are,
      uninit functions.
    
    * Add an experimental 'remove_all' method
    
    * Move atoi64 into device-mapper so that the striped target works
      without loading the linear target.

Summary of changes:
 sys/dev/disk/dm/device-mapper.c                   |   66 +++-----
 sys/dev/disk/dm/dm.h                              |   20 ++-
 sys/dev/disk/dm/dm_dev.c                          |  192 ++++++++++++++++-----
 sys/dev/disk/dm/dm_ioctl.c                        |  104 ++++-------
 sys/dev/disk/dm/dm_pdev.c                         |   66 ++++----
 sys/dev/disk/dm/dm_target.c                       |   52 +++---
 sys/dev/disk/dm/targets/linear/dm_target_linear.c |   19 --
 7 files changed, 281 insertions(+), 238 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9fada28acfffd04235bc0396c7244d25df88b68c


-- 
DragonFly BSD source repository





More information about the Commits mailing list