git: dm - add remove_all, refactor

看板DFBSD_commit作者時間15年前 (2010/12/14 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 9fada28acfffd04235bc0396c7244d25df88b68c Author: Alex Hornung <ahornung@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
文章代碼(AID): #1D1gps4G (DFBSD_commit)