diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 17:08:12 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:46 +0100 |
commit | df5d5489aed7ae9de007776e19350bd5aebbfea2 (patch) | |
tree | e22d46cedff685cc8fa66bb695d14c5571bdfe45 /ubifs-utils/common | |
parent | 7e6ae3a8dcbedf0e65c091e985aff56f293cf8ec (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/common')
-rw-r--r-- | ubifs-utils/common/linux_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ubifs-utils/common/linux_types.h b/ubifs-utils/common/linux_types.h index 556b2e2..ebf9ecd 100644 --- a/ubifs-utils/common/linux_types.h +++ b/ubifs-utils/common/linux_types.h @@ -28,6 +28,9 @@ struct fscrypt_name { #define fname_name(p) ((p)->disk_name.name) #define fname_len(p) ((p)->disk_name.len) +#define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH) +#define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH) + #define t16(x) ({ \ uint16_t __b = (x); \ (__LITTLE_ENDIAN==__BYTE_ORDER) ? __b : bswap_16(__b); \ |