[Libguestfs] [PATCH v6 0/5] New API: filesystem_walk

Matteo Cafasso noxdafox at gmail.com
Mon May 2 20:51:19 UTC 2016


v6:

 - added metadata reallocation flag in tsk_flags

   Certain filesystems separate file name structures and metadata ones.
   Therefore, deleted entries with file name structures in an
   unallocated state might point to metadata structures which have been
   reallocated to new files. A flag set to 1 is generally an indication
   that the information gathered from the metadata structure (file size
   and file type) might refer to a different file.

It might make sense to expose the constant values to the user so he/she
can use them for bitwise comparison. Yet I have not found any example
within the code so I preferred to stick to the suggestion to simply
document the values.

Patch ready for review. Code available at:
https://github.com/noxdafox/libguestfs/tree/filesystem_walk

Matteo Cafasso (5):
  generator: Added tsk_dirent struct
  configure: Added libtsk compile-time check
  New API: internal_filesystem_walk
  New API: filesystem_walk
  lib: Added filesystem_walk command tests

 daemon/Makefile.am                |   4 +-
 daemon/tsk.c                      | 249 ++++++++++++++++++++++++++++++++++++++
 docs/guestfs-building.pod         |   4 +
 generator/actions.ml              | 117 ++++++++++++++++++
 generator/structs.ml              |  13 ++
 m4/guestfs_daemon.m4              |   8 ++
 src/MAX_PROC_NR                   |   2 +-
 src/Makefile.am                   |   1 +
 src/tsk.c                         | 123 +++++++++++++++++++
 tests/tsk/Makefile.am             |   3 +-
 tests/tsk/test-filesystem-walk.sh |  64 ++++++++++
 11 files changed, 585 insertions(+), 3 deletions(-)
 create mode 100644 daemon/tsk.c
 create mode 100644 src/tsk.c
 create mode 100755 tests/tsk/test-filesystem-walk.sh

--
2.8.1




More information about the Libguestfs mailing list