]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_loop.h
hexdecoct: make unbase64mem and unhexmem always use SIZE_MAX
[thirdparty/systemd.git] / src / basic / missing_loop.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <linux/loop.h>
5
6 #ifndef LOOP_CONFIGURE
7 struct loop_config {
8 __u32 fd;
9 __u32 block_size;
10 struct loop_info64 info;
11 __u64 __reserved[8];
12 };
13
14 #define LOOP_CONFIGURE 0x4C0A
15 #endif
16
17 #ifndef LO_FLAGS_DIRECT_IO
18 #define LO_FLAGS_DIRECT_IO 16
19 #define LOOP_SET_DIRECT_IO 0x4C08
20 #endif
21
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