We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e64c7 commit 5c7c43dCopy full SHA for 5c7c43d
include/lapi/loop.h
@@ -0,0 +1,32 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
2
+/*
3
+ * Copyright (c) 2020 FUJITSU LIMITED. All rights reserved.
4
+ * Author: Yang Xu <[email protected]>
5
+ */
6
+#ifndef LAPI_LOOP_H
7
+#define LAPI_LOOP_H
8
+
9
+#include <linux/types.h>
10
+#include <linux/loop.h>
11
12
+#ifndef LO_FLAGS_PARTSCAN
13
+# define LO_FLAGS_PARTSCAN 8
14
+#endif
15
16
+#ifndef LO_FLAGS_DIRECT_IO
17
+# define LO_FLAGS_DIRECT_IO 16
18
19
20
+#ifndef LOOP_SET_CAPACITY
21
+# define LOOP_SET_CAPACITY 0x4C07
22
23
24
+#ifndef LOOP_SET_DIRECT_IO
25
+# define LOOP_SET_DIRECT_IO 0x4C08
26
27
28
+#ifndef LOOP_SET_BLOCK_SIZE
29
+# define LOOP_SET_BLOCK_SIZE 0x4C09
30
31
32
0 commit comments