]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/missing: move BLKGETDISKSEQ to missing_fs.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Mar 2022 18:23:33 +0000 (03:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Apr 2022 06:13:18 +0000 (15:13 +0900)
As it is defined at linux/fs.h.

src/basic/missing_fs.h
src/basic/missing_loop.h
src/shared/loop-util.c

index cc43d7c277af15c79f421327086a2c3495ac6a40..0cacd49bcff7eb500e7ed388091e51ebada3a0e3 100644 (file)
@@ -6,6 +6,10 @@
 #define RENAME_NOREPLACE (1 << 0)
 #endif
 
+#ifndef BLKGETDISKSEQ
+#define BLKGETDISKSEQ _IOR(0x12,128,__u64)
+#endif
+
 /* linux/fs.h or sys/mount.h */
 #ifndef MS_MOVE
 #define MS_MOVE 8192
index 5fe63ad1ca686921e09939921e8796cb243a1d11..449858d3a7813b47db7ae37a7a7b44e04e2e67bd 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <linux/fs.h>
 #include <linux/loop.h>
 
 #ifndef LOOP_CONFIGURE
@@ -15,10 +14,6 @@ struct loop_config {
 #define LOOP_CONFIGURE 0x4C0A
 #endif
 
-#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
index b55d4e44badc18bafe34efb76ce7a59f0349799f..8736c930ad8881151f56385b43794e9ccbde9e2c 100644 (file)
@@ -23,6 +23,7 @@
 #include "fd-util.h"
 #include "fileio.h"
 #include "loop-util.h"
+#include "missing_fs.h"
 #include "missing_loop.h"
 #include "parse-util.h"
 #include "random-util.h"