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
c0b7e6ba
Unverified
Commit
c0b7e6ba
authored
6 years ago
by
Richard Cordovano
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1284 from sleuthkit/img_writer_delay
Added delay into image writer to not starve other readers
parents
ccc72e56
ed1c5c30
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsk/img/img_writer.cpp
+8
-1
8 additions, 1 deletion
tsk/img/img_writer.cpp
with
8 additions
and
1 deletion
tsk/img/img_writer.cpp
+
8
−
1
View file @
c0b7e6ba
...
@@ -575,8 +575,15 @@ static TSK_RETVAL_ENUM tsk_img_writer_finish_image(TSK_IMG_WRITER* img_writer) {
...
@@ -575,8 +575,15 @@ static TSK_RETVAL_ENUM tsk_img_writer_finish_image(TSK_IMG_WRITER* img_writer) {
return
TSK_ERR
;
return
TSK_ERR
;
}
}
/* Using tsk_img_read here to make sure we get the lock */
/* Using tsk_img_read here to make sure we get the lock */
tsk_img_read
(
img_writer
->
img_info
,
offset
,
buffer
,
TSK_IMG_INFO_CACHE_LEN
);
if
(
tsk_img_read
(
img_writer
->
img_info
,
offset
,
buffer
,
TSK_IMG_INFO_CACHE_LEN
)
<
0
)
{
// this usually happens when the device has been unplugged
return
TSK_ERR
;
}
}
}
/* In Autopsy, tsk_img_writer_finish_image() was starving other threads that were trying to do
* basic reads and made the app impossible to use. Add the short sleep to give
* other threads a chance to get the underlying locks. */
Sleep
(
1
);
}
}
}
}
...
...
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