git: sys/dev/disk/dm: Separate dm_dev_rem_dev() from dm_dev_rem()
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sun Oct 11 03:32:44 PDT 2015
commit 4c28af7b441c5df18a2a0900f25d488db8aa0314
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sun Oct 11 01:18:51 2015 +0900
sys/dev/disk/dm: Separate dm_dev_rem_dev() from dm_dev_rem()
dm_dev_rem() should be separated into two functions where
one takes *dmv and the other takes name,uuid,minor for args.
If a caller has a pointer to dm device, then it basically
never use the rest. If not the caller may use all the rest.
dm_dev_rem() currently taking all four args makes it more
complicated than it should. Also this is closer to the
original NetBSD implementation.
Summary of changes:
sys/dev/disk/dm/dm.h | 3 ++-
sys/dev/disk/dm/dm_dev.c | 25 +++++++++++++++++++------
sys/dev/disk/dm/dm_ioctl.c | 2 +-
3 files changed, 22 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4c28af7b441c5df18a2a0900f25d488db8aa0314
--
DragonFly BSD source repository
More information about the Commits
mailing list