Skip to content
Snippets Groups Projects
Commit a8dc242f authored by Brian Carrier's avatar Brian Carrier
Browse files

new TskAuto::findFilesInFs(TSK_FS_INFO *) method from Eamonn Saunders

parent c01074b7
Branches
Tags
No related merge requests found
...@@ -12,6 +12,7 @@ New Features: ...@@ -12,6 +12,7 @@ New Features:
New Features: New Features:
- new TskAuto method (handleNotification()) that gets verbose messages that allow for debugging when the class makes decisions. - new TskAuto method (handleNotification()) that gets verbose messages that allow for debugging when the class makes decisions.
- DOS partitions are loaded even if an extended partition fails to load - DOS partitions are loaded even if an extended partition fails to load
- new TskAuto::findFilesInFs(TSK_FS_INFO *) method
---------------- VERSION 3.2.2 -------------- ---------------- VERSION 3.2.2 --------------
......
...@@ -215,7 +215,7 @@ TSK_WALK_RET_ENUM ...@@ -215,7 +215,7 @@ TSK_WALK_RET_ENUM
/** /**
* Starts in a specified sector of the opened disk images and looks for a * Starts in a specified byte offset of the opened disk images and looks for a
* volume system or file system. Will call processFile() on each file * volume system or file system. Will call processFile() on each file
* that is found. * that is found.
* @param a_start Byte offset to start analyzing from. * @param a_start Byte offset to start analyzing from.
...@@ -271,7 +271,7 @@ uint8_t TskAuto::findFilesInVs(TSK_OFF_T a_start, TSK_VS_TYPE_ENUM a_vtype) ...@@ -271,7 +271,7 @@ uint8_t TskAuto::findFilesInVs(TSK_OFF_T a_start, TSK_VS_TYPE_ENUM a_vtype)
} }
/** /**
* Starts in a specified sector of the opened disk images and looks for a * Starts in a specified byte offset of the opened disk images and looks for a
* volume system or file system. Will call processFile() on each file * volume system or file system. Will call processFile() on each file
* that is found. * that is found.
* @param a_start Byte offset to start analyzing from. * @param a_start Byte offset to start analyzing from.
...@@ -284,7 +284,7 @@ uint8_t TskAuto::findFilesInVs(TSK_OFF_T a_start) ...@@ -284,7 +284,7 @@ uint8_t TskAuto::findFilesInVs(TSK_OFF_T a_start)
/** /**
* Starts in a specified sector of the opened disk images and looks for a * Starts in a specified byte offset of the opened disk images and looks for a
* file system. Will call processFile() on each file * file system. Will call processFile() on each file
* that is found. Same as findFilesInFs, but gives more detailed return values. * that is found. Same as findFilesInFs, but gives more detailed return values.
* @param a_start Byte offset to start analyzing from. * @param a_start Byte offset to start analyzing from.
...@@ -324,8 +324,28 @@ TSK_RETVAL_ENUM ...@@ -324,8 +324,28 @@ TSK_RETVAL_ENUM
return retval; return retval;
} }
/**
* Processes the file system represented by the given TSK_FS_INFO
* pointer. Will Call processFile() on each file that is found.
*
* @param a_fs_info Pointer to a previously opened file system.
*
* @returns 1 on error and 0 on success
*/
uint8_t TskAuto::findFilesInFs(TSK_FS_INFO *a_fs_info)
{
if (a_fs_info == NULL)
return 1;
if (findFilesInFsInt(a_fs_info, a_fs_info->root_inum) == TSK_ERR)
return 1;
else
return 0;
}
/** /**
* Starts in a specified sector of the opened disk images and looks for a * Starts in a specified byte offset of the opened disk images and looks for a
* file system. Will call processFile() on each file * file system. Will call processFile() on each file
* that is found. * that is found.
* *
...@@ -343,7 +363,7 @@ uint8_t TskAuto::findFilesInFs(TSK_OFF_T a_start) ...@@ -343,7 +363,7 @@ uint8_t TskAuto::findFilesInFs(TSK_OFF_T a_start)
/** /**
* Starts in a specified sector of the opened disk images and looks for a * Starts in a specified byte offset of the opened disk images and looks for a
* file system. Will call processFile() on each file * file system. Will call processFile() on each file
* that is found. * that is found.
* *
...@@ -361,7 +381,7 @@ uint8_t TskAuto::findFilesInFs(TSK_OFF_T a_start, TSK_FS_TYPE_ENUM a_ftype) ...@@ -361,7 +381,7 @@ uint8_t TskAuto::findFilesInFs(TSK_OFF_T a_start, TSK_FS_TYPE_ENUM a_ftype)
} }
/** /**
* Starts in a specified sector of the opened disk images and looks for a * Starts in a specified byte offset of the opened disk images and looks for a
* file system. Will start processing the file system at a specified * file system. Will start processing the file system at a specified
* file system. Will call processFile() on each file * file system. Will call processFile() on each file
* that is found in that directory. * that is found in that directory.
...@@ -410,7 +430,7 @@ uint8_t ...@@ -410,7 +430,7 @@ uint8_t
/** /**
* Starts in a specified sector of the opened disk images and looks for a * Starts in a specified byte offset of the opened disk images and looks for a
* file system. Will start processing the file system at a specified * file system. Will start processing the file system at a specified
* file system. Will call processFile() on each file * file system. Will call processFile() on each file
* that is found in that directory. * that is found in that directory.
......
...@@ -75,6 +75,7 @@ class TskAuto { ...@@ -75,6 +75,7 @@ class TskAuto {
uint8_t findFilesInFs(TSK_OFF_T start, TSK_INUM_T inum); uint8_t findFilesInFs(TSK_OFF_T start, TSK_INUM_T inum);
uint8_t findFilesInFs(TSK_OFF_T start, TSK_FS_TYPE_ENUM ftype, uint8_t findFilesInFs(TSK_OFF_T start, TSK_FS_TYPE_ENUM ftype,
TSK_INUM_T inum); TSK_INUM_T inum);
uint8_t findFilesInFs(TSK_FS_INFO *a_fs_info);
TSK_RETVAL_ENUM findFilesInFsRet(TSK_OFF_T start, TSK_RETVAL_ENUM findFilesInFsRet(TSK_OFF_T start,
TSK_FS_TYPE_ENUM a_ftype); TSK_FS_TYPE_ENUM a_ftype);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment