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
83e54c91
Commit
83e54c91
authored
8 years ago
by
Ann Priestman
Browse files
Options
Downloads
Patches
Plain Diff
Updated comments
parent
c0485b8f
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
+4
-2
4 additions, 2 deletions
tsk/img/img_writer.cpp
with
4 additions
and
2 deletions
tsk/img/img_writer.cpp
+
4
−
2
View file @
83e54c91
...
@@ -464,7 +464,8 @@ static TSK_RETVAL_ENUM tsk_img_writer_close(TSK_IMG_WRITER* img_writer) {
...
@@ -464,7 +464,8 @@ static TSK_RETVAL_ENUM tsk_img_writer_close(TSK_IMG_WRITER* img_writer) {
}
}
/*
/*
* Will go through the image and manually read and copy any incomplete blocks
* Will go through the image and manually read any incomplete blocks to
* complete the image.
* @param img_writer Image writer object
* @param img_writer Image writer object
*/
*/
static
TSK_RETVAL_ENUM
tsk_img_writer_finish_image
(
TSK_IMG_WRITER
*
img_writer
)
{
static
TSK_RETVAL_ENUM
tsk_img_writer_finish_image
(
TSK_IMG_WRITER
*
img_writer
)
{
...
@@ -488,7 +489,8 @@ static TSK_RETVAL_ENUM tsk_img_writer_finish_image(TSK_IMG_WRITER* img_writer) {
...
@@ -488,7 +489,8 @@ static TSK_RETVAL_ENUM tsk_img_writer_finish_image(TSK_IMG_WRITER* img_writer) {
for
(
uint32_t
i
=
0
;
i
<
img_writer
->
totalBlocks
;
i
++
)
{
for
(
uint32_t
i
=
0
;
i
<
img_writer
->
totalBlocks
;
i
++
)
{
if
(
img_writer
->
blockStatus
[
i
]
!=
IMG_WRITER_BLOCK_STATUS_FINISHED
)
{
if
(
img_writer
->
blockStatus
[
i
]
!=
IMG_WRITER_BLOCK_STATUS_FINISHED
)
{
/* Read in the entire block in cache-length chunks.
/* Read in the entire block in cache-length chunks. Each read will lead to a call to
* tsk_img_writer_add with the new data.
* We don't use the sector bitmap here because there is a chance the memory will get freed by
* We don't use the sector bitmap here because there is a chance the memory will get freed by
* another thread running tsk_img_writer_add.
* another thread running tsk_img_writer_add.
*/
*/
...
...
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