Merge pull request #10197 from vbatts/vbatts-dm_cookie_support
devicemapper: API for cookie support
This commit is contained in:
commit
810a000d6b
2 changed files with 12 additions and 0 deletions
|
@ -110,6 +110,7 @@ var (
|
|||
DmUdevWait = dmUdevWaitFct
|
||||
DmUdevSetSyncSupport = dmUdevSetSyncSupportFct
|
||||
DmUdevGetSyncSupport = dmUdevGetSyncSupportFct
|
||||
DmCookieSupported = dmCookieSupportedFct
|
||||
LogWithErrnoInit = logWithErrnoInitFct
|
||||
)
|
||||
|
||||
|
@ -246,6 +247,10 @@ func dmUdevWaitFct(cookie uint) int {
|
|||
return int(C.dm_udev_wait(C.uint32_t(cookie)))
|
||||
}
|
||||
|
||||
func dmCookieSupportedFct() int {
|
||||
return int(C.dm_cookie_supported())
|
||||
}
|
||||
|
||||
func dmLogInitVerboseFct(level int) {
|
||||
C.dm_log_init_verbose(C.int(level))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue