LoopDevControl

Set of functions for loop device management. See also: man 4 loop

Members

Static functions

addLoopDevice
void addLoopDevice(ulong loopNumber)

Adds the new loop device.

associateFileWithDevice
void associateFileWithDevice(string filePath, ulong loopNumber)

Associate the loop device with the required file.

associateFileWithDevice
void associateFileWithDevice(string filePath, string loopDevice)

Associate the loop device with the required file.

disassociateFileWithDevice
void disassociateFileWithDevice(string filePath, ulong loopNumber)

Disassociate the loop device with the required file.

disassociateFileWithDevice
void disassociateFileWithDevice(string filePath, string loopDevice)

Disassociate the loop device with the required file.

doesLoopDeviceExistAndIsBusy
bool doesLoopDeviceExistAndIsBusy(uint loopNumber)

Returns true if loop device exists, but busy.

getFreeLoopDevice
uint getFreeLoopDevice()

Allocates or finds a free loop device for use.

getLoopStatus
loop_info64 getLoopStatus(long loopNumber)

Creates loop_info64 structure for loop device with required number.

isLoopDeviceBusy
bool isLoopDeviceBusy(uint loopNumber)

Returns true if loop device is busy.

Meta