def transition_to_incremental(minor): ret = lib.dattobd_transition_incremental(minor) if ret != 0: return ffi.errno util.settle() return 0
def destroy(minor): ret = lib.dattobd_destroy(minor) if ret != 0: return ffi.errno util.settle() return 0
def reconfigure(minor, cache_size): ret = lib.dattobd_reconfigure(minor, cache_size) if ret != 0: return ffi.errno util.settle() return 0
def transition_to_snapshot(minor, cow_file, fallocated_space=0): ret = lib.dattobd_transition_snapshot(minor, cow_file.encode("utf-8"), fallocated_space) if ret != 0: return ffi.errno util.settle() return 0
def reload_incremental(minor, device, cow_file, cache_size=0): ret = lib.dattobd_reload_incremental(minor, device.encode("utf-8"), cow_file.encode("utf-8"), cache_size) if ret != 0: return ffi.errno util.settle() return 0
def setup(minor, device, cow_file, fallocated_space=0, cache_size=0): ret = lib.dattobd_setup_snapshot(minor, device.encode("utf-8"), cow_file.encode("utf-8"), fallocated_space, cache_size) if ret != 0: return ffi.errno util.settle() return 0