From df5d5489aed7ae9de007776e19350bd5aebbfea2 Mon Sep 17 00:00:00 2001 From: Zhihao Cheng Date: Mon, 11 Nov 2024 17:08:12 +0800 Subject: ubifs-utils: libubifs: Support some file operations Add some file operations, such as ubifs_lookup, ubifs_mkdir, etc., this is a preparation for recovering disconnected files or root dir in fsck. File writing operations are based on the journal subsystem, generated dirty data depends on a new commit in subsequent steps to update disk content. Signed-off-by: Zhihao Cheng Signed-off-by: David Oberhollenzer --- ubifs-utils/fsck.ubifs/rebuild_fs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ubifs-utils/fsck.ubifs') diff --git a/ubifs-utils/fsck.ubifs/rebuild_fs.c b/ubifs-utils/fsck.ubifs/rebuild_fs.c index e65d655..b82d728 100644 --- a/ubifs-utils/fsck.ubifs/rebuild_fs.c +++ b/ubifs-utils/fsck.ubifs/rebuild_fs.c @@ -707,8 +707,6 @@ static void extract_dentry_tree(struct ubifs_info *c) static void init_root_ino(struct ubifs_info *c, struct ubifs_ino_node *ino) { -#define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH) -#define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH) __le64 tmp_le64; /* Create default root inode */ -- cgit v1.2.3