devicemapper: API for checking cookie support
Signed-off-by: Vincent Batts <vbatts@redhat.com>
This commit is contained in:
parent
13fc8f758d
commit
650ca7d915
2 changed files with 12 additions and 0 deletions
|
@ -109,6 +109,7 @@ var (
|
|||
DmUdevWait = dmUdevWaitFct
|
||||
DmUdevSetSyncSupport = dmUdevSetSyncSupportFct
|
||||
DmUdevGetSyncSupport = dmUdevGetSyncSupportFct
|
||||
DmCookieSupported = dmCookieSupportedFct
|
||||
LogWithErrnoInit = logWithErrnoInitFct
|
||||
)
|
||||
|
||||
|
@ -245,6 +246,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