The Sleuth Kit  4.11.1
Functions
fatfs_meta.c File Reference

Meta data layer support for FAT file systems. More...

#include "tsk_fatfs.h"
#include "tsk_fatxxfs.h"
#include "tsk_exfatfs.h"

Functions

uint8_t fatfs_dentry_load (FATFS_INFO *a_fatfs, FATFS_DENTRY *a_dentry, TSK_INUM_T a_inum)
 
TSK_FS_ATTR_TYPE_ENUM fatfs_get_default_attr_type (const TSK_FS_FILE *a_file)
 
uint8_t fatfs_inode_lookup (TSK_FS_INFO *a_fs, TSK_FS_FILE *a_fs_file, TSK_INUM_T a_inum)
 
uint8_t fatfs_inode_walk (TSK_FS_INFO *a_fs, TSK_INUM_T a_start_inum, TSK_INUM_T a_end_inum, TSK_FS_META_FLAG_ENUM a_selection_flags, TSK_FS_META_WALK_CB a_action, void *a_ptr)
 Walk the inodes in a specified range and do a TSK_FS_META_WALK_CB callback for each inode that satisfies criteria specified by a set of TSK_FS_META_FLAG_ENUM flags. More...
 
uint8_t fatfs_istat (TSK_FS_INFO *a_fs, TSK_FS_ISTAT_FLAG_ENUM istat_flags, FILE *a_hFile, TSK_INUM_T a_inum, TSK_DADDR_T a_numblock, int32_t a_sec_skew)
 Print details on a specific file to a file handle. More...
 
uint8_t fatfs_make_data_runs (TSK_FS_FILE *a_fs_file)
 

Detailed Description

Meta data layer support for FAT file systems.

Function Documentation

uint8_t fatfs_inode_walk ( TSK_FS_INFO a_fs,
TSK_INUM_T  a_start_inum,
TSK_INUM_T  a_end_inum,
TSK_FS_META_FLAG_ENUM  a_selection_flags,
TSK_FS_META_WALK_CB  a_action,
void *  a_ptr 
)

Walk the inodes in a specified range and do a TSK_FS_META_WALK_CB callback for each inode that satisfies criteria specified by a set of TSK_FS_META_FLAG_ENUM flags.

The following flags are supported: TSK_FS_META_FLAG_ALLOC, TSK_FS_META_FLAG_UNALLOC, TSK_FS_META_FLAG_ORPHAN, TSK_FS_META_FLAG_USED (FATXX only), and TSK_FS_META_FLAG_UNUSED (FATXX only).

Parameters
[in]a_fsFile system that contains the inodes.
[in]a_start_inumInclusive lower bound of inode range.
[in]a_end_inumInclusive upper bound of inode range.
[in]a_selection_flagsInode selection criteria.
[in]a_actionCallback function for selected inodes.
[in]a_ptrPrivate data pointer passed through to callback function.
Returns
0 on success, 1 on failure, per TSK convention

References TSK_FS_INFO::block_count, TSK_FS_INFO::last_block, TSK_FS_INFO::last_inum, TSK_FS_FILE::meta, TSK_FS_INFO::root_inum, TSK_COR, tsk_error_errstr2_concat(), tsk_error_print(), tsk_error_reset(), tsk_error_set_errno(), tsk_error_set_errstr(), tsk_error_set_errstr2(), tsk_fprintf(), tsk_fs_dir_walk(), TSK_FS_DIR_WALK_FLAG_ALLOC, TSK_FS_DIR_WALK_FLAG_NOORPHAN, TSK_FS_DIR_WALK_FLAG_RECURSE, tsk_fs_file_close(), tsk_fs_file_walk(), TSK_FS_FILE_WALK_FLAG_AONLY, TSK_FS_FILE_WALK_FLAG_SLACK, TSK_FS_META_FLAG_ALLOC, TSK_FS_META_FLAG_ORPHAN, TSK_FS_META_FLAG_UNALLOC, TSK_FS_META_FLAG_UNUSED, TSK_FS_META_FLAG_USED, tsk_fs_read_block(), TSK_OK, tsk_verbose, TSK_WALK_CONT, TSK_WALK_ERROR, and TSK_WALK_STOP.

uint8_t fatfs_istat ( TSK_FS_INFO a_fs,
TSK_FS_ISTAT_FLAG_ENUM  istat_flags,
FILE *  a_hFile,
TSK_INUM_T  a_inum,
TSK_DADDR_T  a_numblock,
int32_t  a_sec_skew 
)

Print details on a specific file to a file handle.

Parameters
a_fsFile system file is located in.
a_hFileFile handle to print text to.
a_inumAddress of file in file system.
a_numblockThe number of blocks in file to force print (can go beyond file size).
a_sec_skewClock skew in seconds to also print times in.
Returns
1 on error and 0 on success.

References TSK_FS_META::addr, TSK_FS_META::atime, TSK_FS_INFO::block_size, TSK_FS_META::crtime, TSK_FS_ATTR::flags, TSK_FS_META::flags, TSK_FS_FILE::meta, TSK_FS_META::mtime, TSK_FS_META_NAME_LIST::name, TSK_FS_META::name2, TSK_FS_INFO::root_inum, TSK_FS_META::size, tsk_error_print(), tsk_error_reset(), tsk_fprintf(), TSK_FS_ATTR_NONRES, tsk_fs_file_attr_get_type(), tsk_fs_file_close(), tsk_fs_file_open_meta(), tsk_fs_file_walk(), TSK_FS_FILE_WALK_FLAG_AONLY, TSK_FS_FILE_WALK_FLAG_SLACK, TSK_FS_META_FLAG_UNALLOC, TSK_FS_META_TYPE_VIRT, tsk_fs_time_to_str(), and TSK_FS_META::type.


Copyright © 2007-2020 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.