1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

basic/missing_loop.h: fix missing lo_flags LO_FLAGS_DIRECT_IO

This commit is contained in:
Guillaume W. Bres 2022-09-08 15:54:57 +02:00 committed by Luca Boccassi
parent 90235a3df2
commit b3fe33ff52

View File

@ -14,6 +14,11 @@ struct loop_config {
#define LOOP_CONFIGURE 0x4C0A
#endif
#ifndef LOOP_SET_STATUS_SETTABLE_FLAGS
#define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN)
#ifndef LO_FLAGS_DIRECT_IO
#define LO_FLAGS_DIRECT_IO 16
#define LOOP_SET_DIRECT_IO 0x4C08
#endif
#ifndef LOOP_SET_STATUS_SETTABLE_FLAGS
#define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN | LO_FLAGS_DIRECT_IO)
#endif