Inode flags are used by the userspace tool fsck.pramfs.
Signed-off-by: Vladimir Davydov <vda...@pa...>
---
pram.h | 17 -----------------
pram_fs_uapi.h | 18 ++++++++++++++++++
2 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/pram.h b/pram.h
index d7ae16a..08d724b 100644
--- a/pram.h
+++ b/pram.h
@@ -52,23 +52,6 @@ do { \
#define set_opt(o, opt) (o |= PRAM_MOUNT_##opt)
#define test_opt(sb, opt) (PRAM_SB(sb)->s_mount_opt & PRAM_MOUNT_##opt)
-/*
- * Pram inode flags
- *
- * PRAM_EOFBLOCKS_FL There are blocks allocated beyond eof
- */
-#define PRAM_EOFBLOCKS_FL 0x20000000
-/* Flags that should be inherited by new inodes from their parent. */
-#define PRAM_FL_INHERITED (FS_SECRM_FL | FS_UNRM_FL | FS_COMPR_FL |\
- FS_SYNC_FL | FS_NODUMP_FL | FS_NOATIME_FL | \
- FS_COMPRBLK_FL | FS_NOCOMP_FL | FS_JOURNAL_DATA_FL |\
- FS_NOTAIL_FL | FS_DIRSYNC_FL)
-/* Flags that are appropriate for regular files (all but dir-specific ones). */
-#define PRAM_REG_FLMASK (~(FS_DIRSYNC_FL | FS_TOPDIR_FL))
-/* Flags that are appropriate for non-directories/regular files. */
-#define PRAM_OTHER_FLMASK (FS_NODUMP_FL | FS_NOATIME_FL)
-#define PRAM_FL_USER_VISIBLE (FS_FL_USER_VISIBLE | PRAM_EOFBLOCKS_FL)
-
/* Function Prototypes */
extern void pram_error_mng(struct super_block *sb, const char *fmt, ...);
diff --git a/pram_fs_uapi.h b/pram_fs_uapi.h
index ef0507b..0ac3172 100644
--- a/pram_fs_uapi.h
+++ b/pram_fs_uapi.h
@@ -16,6 +16,7 @@
#include <linux/types.h>
#include <linux/magic.h>
+#include <linux/fs.h>
/*
* The PRAM filesystem constants/structures
@@ -33,6 +34,23 @@
#define PRAM_MOUNT_ERRORS_PANIC 0x000040 /* Panic on errors */
/*
+ * Pram inode flags
+ *
+ * PRAM_EOFBLOCKS_FL There are blocks allocated beyond eof
+ */
+#define PRAM_EOFBLOCKS_FL 0x20000000
+/* Flags that should be inherited by new inodes from their parent. */
+#define PRAM_FL_INHERITED (FS_SECRM_FL | FS_UNRM_FL | FS_COMPR_FL |\
+ FS_SYNC_FL | FS_NODUMP_FL | FS_NOATIME_FL | \
+ FS_COMPRBLK_FL | FS_NOCOMP_FL | FS_JOURNAL_DATA_FL |\
+ FS_NOTAIL_FL | FS_DIRSYNC_FL)
+/* Flags that are appropriate for regular files (all but dir-specific ones). */
+#define PRAM_REG_FLMASK (~(FS_DIRSYNC_FL | FS_TOPDIR_FL))
+/* Flags that are appropriate for non-directories/regular files. */
+#define PRAM_OTHER_FLMASK (FS_NODUMP_FL | FS_NOATIME_FL)
+#define PRAM_FL_USER_VISIBLE (FS_FL_USER_VISIBLE | PRAM_EOFBLOCKS_FL)
+
+/*
* Maximal count of links to a file
*/
#define PRAM_LINK_MAX 32000
--
1.7.10.4
|