1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-27 18:04:05 +03:00

basic/missing: move BLKGETDISKSEQ to missing_fs.h

As it is defined at linux/fs.h.
This commit is contained in:
Yu Watanabe 2022-03-31 03:23:33 +09:00
parent e529abe24d
commit 2076612f84
3 changed files with 5 additions and 5 deletions

View File

@ -6,6 +6,10 @@
#define RENAME_NOREPLACE (1 << 0) #define RENAME_NOREPLACE (1 << 0)
#endif #endif
#ifndef BLKGETDISKSEQ
#define BLKGETDISKSEQ _IOR(0x12,128,__u64)
#endif
/* linux/fs.h or sys/mount.h */ /* linux/fs.h or sys/mount.h */
#ifndef MS_MOVE #ifndef MS_MOVE
#define MS_MOVE 8192 #define MS_MOVE 8192

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once #pragma once
#include <linux/fs.h>
#include <linux/loop.h> #include <linux/loop.h>
#ifndef LOOP_CONFIGURE #ifndef LOOP_CONFIGURE
@ -15,10 +14,6 @@ struct loop_config {
#define LOOP_CONFIGURE 0x4C0A #define LOOP_CONFIGURE 0x4C0A
#endif #endif
#ifndef BLKGETDISKSEQ
#define BLKGETDISKSEQ _IOR(0x12,128,__u64)
#endif
#ifndef LOOP_SET_STATUS_SETTABLE_FLAGS #ifndef LOOP_SET_STATUS_SETTABLE_FLAGS
#define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN) #define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN)
#endif #endif

View File

@ -23,6 +23,7 @@
#include "fd-util.h" #include "fd-util.h"
#include "fileio.h" #include "fileio.h"
#include "loop-util.h" #include "loop-util.h"
#include "missing_fs.h"
#include "missing_loop.h" #include "missing_loop.h"
#include "parse-util.h" #include "parse-util.h"
#include "random-util.h" #include "random-util.h"