loop-util: enable LO_FLAGS_DIRECT_IO by default on loopback devices

Fixes: #21003
This commit is contained in:
Lennart Poettering
2021-10-19 15:38:21 +02:00
parent aabb252577
commit e8c7c4d9d1
3 changed files with 125 additions and 6 deletions
+4
View File
@@ -18,3 +18,7 @@ struct loop_config {
#ifndef BLKGETDISKSEQ
#define BLKGETDISKSEQ _IOR(0x12,128,__u64)
#endif
#ifndef LOOP_SET_STATUS_SETTABLE_FLAGS
#define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN)
#endif