How to use device mapper in Android(dmsetup cannot be found) -
i trying use device mapper in android, still stuck on command "dmsetup" didn't found in android.
i have loaded linear.ko , zero.ko target device classes in android device, cannot create virtual device device mapper because "dmsetup" cannot found. if know how 1 android or have other methods create virtual device?
by way, saw file "device-mapper" in /dev folder, used for? appreciate can me on this.
br, -wenji
there api can use programatically talk device mapper: http://lwn.net/articles/35077/
this based around ioctl(), it's not friendliest, it's pretty documented: http://androidxref.com/4.4.4_r1/xref/bionic/libc/kernel/common/linux/dm-ioctl.h
there great example of use at: https://github.com/nelenkov/cryptsetup, albeit focussed on dm-verity.
Comments
Post a Comment