search for: free_nod

Displaying 2 results from an estimated 2 matches for "free_nod".

Did you mean: free_mod
2016 Mar 29
3
[PATCH 0/2] added filesystem_walk API
The filesystem_walk API parses the FS internals of a partition and returns a list of all the files and directories contained within. It list deleted files and directories as well. For each node, it reports its relative path, its inode and its allocation status. This is the end user API for inspecting a disk partition content. The command can handle filenames with special characters. Example
2016 Mar 29
0
[PATCH 1/2] added filesystem_walk API
...E_LIBTSK + +static int deserialise_inode_info +(guestfs_h *g, XDR *xdrs, struct guestfs_tsk_node *node_info); +static size_t read_file(guestfs_h *g, const char *path, char **dest); +static struct guestfs_tsk_node_list * +parse_filesystem_walk0 (guestfs_h *g, char *buf, size_t bufsize); +static void free_nodes(struct guestfs_tsk_node_list *nodes); + +struct guestfs_tsk_node_list * +guestfs_impl_filesystem_walk(guestfs_h *g, const char *mountable) +{ + size_t size = 0; + + CLEANUP_FREE char *buf = NULL; + CLEANUP_UNLINK_FREE char *tmpfile = NULL; + + if (guestfs_int_lazy_make_tmpdir (g) == -1) +...