summaryrefslogtreecommitdiff
path: root/src/basic/missing_loop.h
Commit message (Collapse)AuthorAgeFilesLines
* basic/missing_loop.h: fix missing lo_flags LO_FLAGS_DIRECT_IOGuillaume W. Bres2022-09-081-1/+6
|
* basic/missing: move BLKGETDISKSEQ to missing_fs.hYu Watanabe2022-04-011-5/+0
| | | | As it is defined at linux/fs.h.
* loop-util: enable LO_FLAGS_DIRECT_IO by default on loopback devicesLennart Poettering2021-10-191-0/+4
| | | | Fixes: #21003
* loop: parse and store disk sequence numberLuca Boccassi2021-07-281-0/+5
| | | | | | | When loop devices are re-used, the disk sequence number is increased. Parse it when creating a loop device and store it. The kernel will never return DISKSEQ=0, so use it to signal that it's not supported by the current kernel.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* loop-util: use new LOOP_CONFIGURE ioctlLennart Poettering2020-08-111-0/+15
LOOP_CONFIGURE allows us to configure a loopback device in one ioctl instead of two, which is not just faster but also removes the race that udev might start probing the device before we adjusted things properly. Unfortunately LOOP_CONFIGURE is broken in regards to LO_FLAGS_PARTSCAN as of kernel 5.8.0. This patch contains a work-around for that, to fallback to old behaviour if partition scanning is requested but does not work. Sucks a bit. Proposed upstream fix for that issue: https://lkml.org/lkml/2020/8/6/97