1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 /* linux/fs.h */ 5 #ifndef RENAME_NOREPLACE /* 0a7c3937a1f23f8cb5fc77ae01661e9968a51d0c (3.15) */ 6 #define RENAME_NOREPLACE (1 << 0) 7 #endif 8 9 #ifndef BLKGETDISKSEQ 10 #define BLKGETDISKSEQ _IOR(0x12,128,__u64) 11 #endif 12 13 /* linux/fs.h or sys/mount.h */ 14 #ifndef MS_MOVE 15 #define MS_MOVE 8192 16 #endif 17 18 #ifndef MS_REC 19 #define MS_REC 16384 20 #endif 21 22 #ifndef MS_PRIVATE 23 #define MS_PRIVATE (1<<18) 24 #endif 25 26 #ifndef MS_SLAVE 27 #define MS_SLAVE (1<<19) 28 #endif 29 30 #ifndef MS_SHARED 31 #define MS_SHARED (1<<20) 32 #endif 33 34 #ifndef MS_RELATIME 35 #define MS_RELATIME (1<<21) 36 #endif 37 38 #ifndef MS_KERNMOUNT 39 #define MS_KERNMOUNT (1<<22) 40 #endif 41 42 #ifndef MS_I_VERSION 43 #define MS_I_VERSION (1<<23) 44 #endif 45 46 #ifndef MS_STRICTATIME 47 #define MS_STRICTATIME (1<<24) 48 #endif 49 50 #ifndef MS_LAZYTIME 51 #define MS_LAZYTIME (1<<25) 52 #endif 53 54 /* Not exposed yet. Defined at fs/ext4/ext4.h */ 55 #ifndef EXT4_IOC_RESIZE_FS 56 #define EXT4_IOC_RESIZE_FS _IOW('f', 16, __u64) 57 #endif 58 59 /* linux/nsfs.h */ 60 #ifndef NS_GET_NSTYPE /* d95fa3c76a66b6d76b1e109ea505c55e66360f3c (4.11) */ 61 #define NS_GET_NSTYPE _IO(0xb7, 0x3) 62 #endif 63 64 #ifndef FS_PROJINHERIT_FL 65 #define FS_PROJINHERIT_FL 0x20000000 66 #endif 67