The Sleuth Kit  4.10.2
Functions
usn_journal.c File Reference

Contains the TSK Update Sequence Number journal walking code. More...

#include "tsk_fs_i.h"
#include "tsk_ntfs.h"

Functions

uint8_t tsk_ntfs_usnjentry_walk (TSK_FS_INFO *fs, TSK_FS_USNJENTRY_WALK_CB action, void *ptr)
 Walk through the Update Sequence Number journal file opened with ntfs_usnjopen. More...
 
uint8_t tsk_ntfs_usnjopen (TSK_FS_INFO *fs, TSK_INUM_T inum)
 Open the Update Sequence Number Journal stored at the inode inum. More...
 

Detailed Description

Contains the TSK Update Sequence Number journal walking code.

Function Documentation

uint8_t tsk_ntfs_usnjentry_walk ( TSK_FS_INFO fs,
TSK_FS_USNJENTRY_WALK_CB  action,
void *  ptr 
)

Walk through the Update Sequence Number journal file opened with ntfs_usnjopen.

For each USN record, calls the callback action passing the USN record header, the USN record and the pointer ptr.

Parameters
ntfsFile system where the journal is stored
actionaction to be called per each USN entry
ptrpointer to data passed to the action callback
Returns
0 on success, 1 otherwise

References TSK_FS_INFO::ftype, tsk_error_reset(), tsk_error_set_errno(), tsk_error_set_errstr(), tsk_fs_file_close(), and TSK_FS_TYPE_NTFS.

uint8_t tsk_ntfs_usnjopen ( TSK_FS_INFO fs,
TSK_INUM_T  inum 
)

Open the Update Sequence Number Journal stored at the inode inum.

Parameters
ntfsFile system where the journal is stored
inumfile reference number where the USN journal is located
Returns
0 on success, 1 otherwise

References TSK_FS_INFO::block_size, TSK_FS_INFO::ftype, tsk_error_reset(), tsk_error_set_errno(), tsk_error_set_errstr(), tsk_fprintf(), tsk_fs_file_open_meta(), TSK_FS_TYPE_NTFS, and tsk_verbose.


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.