sys/dev/disk/dm: Don't define target specific defs in dm.h
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 3 Oct 2015 07:29:22 +0000 (16:29 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 10 Oct 2015 12:38:17 +0000 (21:38 +0900)
commitf3ef812beaa0c3135ecba9fda85c11465cd3ac4a
treebfad810762f1a21fd0cd461a0397c5c799345cbc
parent000ca89e7fa58b51a4a6a05c82872be553e3b60f
sys/dev/disk/dm: Don't define target specific defs in dm.h

dm targets should not have target local structures, function
prototypes, etc in dm.h which is a header for dm core.
It has no dependency on a certain dm target, and works with
or without a certain dm target.

Targets local structures are usually private data part of dm,
and target local functions are called via pointers. dm core
doesn't recognize these by names or types.

NetBSD had (and still has) it this way, but this change will
not make it any difficult to sync with NetBSD in the future
since NetBSD also isn't likely to use them in dm core by its
design. They're just defined there.
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/targets/linear/dm_target_linear.c
sys/dev/disk/dm/targets/mirror/dm_target_mirror.c
sys/dev/disk/dm/targets/snapshot/dm_target_snapshot.c
sys/dev/disk/dm/targets/striped/dm_target_striped.c