Re: [Libguestfs] [PATCH v8 1/3] New API: internal_filesystem_walk

Pino Toscano
2016-06-15T07:56:49Z

On Monday 13 June 2016 19:50:52 Matteo Cafasso wrote:
>  - generator: Added tsk_dirent struct
>
> The tsk_dirent struct contains the information gathered via TSK APIs.
>
> The struct contains the following fields:
>  * tsk_inode: inode of a file
>  * tsk_type: type of file such as for dirwalk command
>  * tsk_size: file size in bytes
>  * tsk_name: path relative to its disk partition
>  * tsk_flags: bitfield containing extra information
>
>  - configure: Added libtsk compile-time check
>
> Ensure libtsk is available at compile time.
> If not, daemon routines depending on it won't be available.
>
>  - API: internal_filesystem_walk
>
> The internal_filesystem_walk command walks through the FS structures
> of a disk partition and returns all the files or directories
> which could be found.
>
> The command is able to retrieve information regarding deleted
> or unaccessible files where other commands such as stat or find
> would fail.
>
> The gathered list of tsk_dirent structs is serialised into XDR format
> and written to a file by the appliance.
>
> Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
> ---

Note that a new struct adds new content to the following files:

  gobject/Makefile.inc
  java/Makefile.inc
  java/com/redhat/et/libguestfs/.gitignore

These changes should be part of this patch too (no need to resend the
series just because of that for now, though).

--
Pino Toscano