summaryrefslogtreecommitdiffstats
path: root/src/utils/include/loopdev.h
Commit message (Collapse)AuthorAgeFilesLines
* Update xlosetup's 'lib' and 'libsmartcol' from util-linux 2.36.1Manuel Bentele2020-12-021-0/+1
|
* Setup xloop device with XLOOP_CONFIGURE ioctl callManuel Bentele2020-12-021-1/+14
| | | | | | | | | | | | This feature allows the userspace tool xlosetup to completely setup a loop device with a single ioctl call, removing the in-between state where the device can be partially configured, eg. the loop device has a backing file associated with it, but is reading from the wrong offset. Besides removing the intermediate state, another big benefit of this ioctl is that XLOOP_SET_STATUS can be slow. The main reason for this slowness is that XLOOP_SET_STATUS(64) calls blk_mq_freeze_queue() to freeze the associated queue. This requires waiting for RCU.
* Move the source code of all xloop components to the common 'src' directoryManuel Bentele2020-10-231-0/+222