aboutsummaryrefslogtreecommitdiff
path: root/ubifs-utils/fsck.ubifs
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2024-11-11 17:08:12 +0800
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-11-11 10:32:46 +0100
commitdf5d5489aed7ae9de007776e19350bd5aebbfea2 (patch)
treee22d46cedff685cc8fa66bb695d14c5571bdfe45 /ubifs-utils/fsck.ubifs
parent7e6ae3a8dcbedf0e65c091e985aff56f293cf8ec (diff)
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 <chengzhihao1@huawei.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/fsck.ubifs')
-rw-r--r--ubifs-utils/fsck.ubifs/rebuild_fs.c2
1 files changed, 0 insertions, 2 deletions
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 */