1.1 --- a/libe2access/include/e2access/image.h Mon Feb 14 00:42:55 2022 +0100
1.2 +++ b/libe2access/include/e2access/image.h Mon Feb 14 00:44:19 2022 +0100
1.3 @@ -29,6 +29,8 @@
1.4 extern "C" {
1.5 #endif
1.6
1.7 +/* Filesystem operations. */
1.8 +
1.9 errcode_t image_create_file(ext2_filsys fs, ext2_ino_t ino_target,
1.10 const char *basename, __u16 mode,
1.11 __u16 uid, __u16 gid, ext2_ino_t *ino_file);
1.12 @@ -66,6 +68,8 @@
1.13
1.14 errcode_t image_remove_by_inode(ext2_filsys fs, ext2_ino_t ino);
1.15
1.16 +errcode_t image_remove_by_path(ext2_filsys fs, const char *path);
1.17 +
1.18 errcode_t image_rename(ext2_filsys fs, ext2_ino_t source,
1.19 ext2_ino_t source_parent, const char *source_basename,
1.20 ext2_ino_t target_parent, const char *target_basename);
1.21 @@ -78,9 +82,15 @@
1.22 errcode_t image_unlink_by_name(ext2_filsys fs, ext2_ino_t ino_parent,
1.23 const char *basename);
1.24
1.25 +errcode_t image_unlink_by_path(ext2_filsys fs, const char *path);
1.26 +
1.27 errcode_t image_unlink_by_inode(ext2_filsys fs, ext2_ino_t ino_parent,
1.28 ext2_ino_t ino);
1.29
1.30 +/* Presence and type tests. */
1.31 +
1.32 +int image_exists(ext2_filsys fs, const char *name);
1.33 +
1.34 int _image_isdir(ext2_filsys fs, ext2_ino_t ino);
1.35
1.36 int image_isdir(ext2_filsys fs, const char *name);