sys/dev/disk/dm: Separate dm_dev_rem_dev() from dm_dev_rem()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 10 Oct 2015 16:18:51 +0000 (01:18 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 11 Oct 2015 09:34:12 +0000 (18:34 +0900)
commit4c28af7b441c5df18a2a0900f25d488db8aa0314
tree4af2cc01d3c9c75bc93702a7ab8718f3f929c448
parent52157f6b1a0e2a3193b5d3a8614a093ce99ea3ca
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.
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/dm_dev.c
sys/dev/disk/dm/dm_ioctl.c