udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / src / basic / missing_loop.h
blob7141544b64f0256915e30c2bb60313caa2edd5c3
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
4 #include <linux/loop.h>
6 #ifndef LOOP_CONFIGURE
7 struct loop_config {
8 __u32 fd;
9 __u32 block_size;
10 struct loop_info64 info;
11 __u64 __reserved[8];
14 #define LOOP_CONFIGURE 0x4C0A
15 #endif
17 #ifndef LO_FLAGS_DIRECT_IO
18 #define LO_FLAGS_DIRECT_IO 16
19 #define LOOP_SET_DIRECT_IO 0x4C08
20 #endif
22 #ifndef LOOP_SET_STATUS_SETTABLE_FLAGS
23 #define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN | LO_FLAGS_DIRECT_IO)
24 #endif