Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
c42bf880
Commit
c42bf880
authored
2 years ago
by
apriestman
Browse files
Options
Downloads
Patches
Plain Diff
Use external fs list on all paths
parent
c914c0e4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tsk/auto/auto.cpp
+13
-1
13 additions, 1 deletion
tsk/auto/auto.cpp
tsk/auto/tsk_auto.h
+1
-1
1 addition, 1 deletion
tsk/auto/tsk_auto.h
with
14 additions
and
2 deletions
tsk/auto/auto.cpp
+
13
−
1
View file @
c42bf880
...
@@ -189,7 +189,7 @@ void
...
@@ -189,7 +189,7 @@ void
* instead of opening a new copy.
* instead of opening a new copy.
*/
*/
void
void
TskAuto
::
setExternalFileSystemList
(
std
::
list
<
TSK_FS_INFO
*>
fsInfoList
)
TskAuto
::
setExternalFileSystemList
(
const
std
::
list
<
TSK_FS_INFO
*>
&
fsInfoList
)
{
{
m_exteralFsInfoList
.
resize
(
fsInfoList
.
size
());
m_exteralFsInfoList
.
resize
(
fsInfoList
.
size
());
m_exteralFsInfoList
.
assign
(
fsInfoList
.
begin
(),
fsInfoList
.
end
());
m_exteralFsInfoList
.
assign
(
fsInfoList
.
begin
(),
fsInfoList
.
end
());
...
@@ -661,6 +661,18 @@ uint8_t
...
@@ -661,6 +661,18 @@ uint8_t
return
1
;
return
1
;
}
}
// If we already have an open copy of this file system, use it
for
(
auto
itr
=
m_exteralFsInfoList
.
begin
();
itr
!=
m_exteralFsInfoList
.
end
();
itr
++
)
{
if
((
*
itr
)
->
offset
==
a_start
)
{
TSK_FS_INFO
*
fs_info
=
*
itr
;
TSK_RETVAL_ENUM
retval
=
findFilesInFsInt
(
fs_info
,
fs_info
->
root_inum
);
if
(
m_errors
.
empty
()
==
false
)
return
TSK_ERR
;
else
return
retval
;
}
}
TSK_FS_INFO
*
fs_info
;
TSK_FS_INFO
*
fs_info
;
if
((
fs_info
=
tsk_fs_open_img
(
m_img_info
,
a_start
,
a_ftype
))
==
NULL
)
{
if
((
fs_info
=
tsk_fs_open_img
(
m_img_info
,
a_start
,
a_ftype
))
==
NULL
)
{
if
(
isCurVsValid
()
==
false
)
{
if
(
isCurVsValid
()
==
false
)
{
...
...
This diff is collapsed.
Click to expand it.
tsk/auto/tsk_auto.h
+
1
−
1
View file @
c42bf880
...
@@ -100,7 +100,7 @@ class TskAuto {
...
@@ -100,7 +100,7 @@ class TskAuto {
void
setFileFilterFlags
(
TSK_FS_DIR_WALK_FLAG_ENUM
);
void
setFileFilterFlags
(
TSK_FS_DIR_WALK_FLAG_ENUM
);
void
setVolFilterFlags
(
TSK_VS_PART_FLAG_ENUM
);
void
setVolFilterFlags
(
TSK_VS_PART_FLAG_ENUM
);
void
setExternalFileSystemList
(
std
::
list
<
TSK_FS_INFO
*>
exteralFsInfoList
);
void
setExternalFileSystemList
(
const
std
::
list
<
TSK_FS_INFO
*>
&
exteralFsInfoList
);
/**
/**
* TskAuto calls this method before it processes the volume system that is found in an
* TskAuto calls this method before it processes the volume system that is found in an
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment