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
9045a534
Commit
9045a534
authored
9 years ago
by
Brian Carrier
Browse files
Options
Downloads
Plain Diff
Merge pull request #631 from uckelman/develop
Set TSK_FS_META_FLAG_USED or TSK_FS_META_FLAG_UNUSED once again for
parents
75f60eb1
c6605158
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tsk/fs/fatxxfs_meta.c
+5
-2
5 additions, 2 deletions
tsk/fs/fatxxfs_meta.c
tsk/fs/tsk_fatxxfs.h
+1
-0
1 addition, 0 deletions
tsk/fs/tsk_fatxxfs.h
with
6 additions
and
2 deletions
tsk/fs/fatxxfs_meta.c
+
5
−
2
View file @
9045a534
...
...
@@ -361,9 +361,8 @@ fatxxfs_dinode_copy(FATFS_INFO *a_fatfs, TSK_INUM_T a_inum,
fs_meta
->
addr
=
a_inum
;
if
(
a_cluster_is_alloc
)
{
if
(
FATXXFS_IS_DELETED
(
dentry
->
name
,
a_fatfs
)){
flags
=
TSK_FS_META_FLAG_UNALLOC
;
flags
=
TSK_FS_META_FLAG_UNALLOC
;
}
else
{
flags
=
TSK_FS_META_FLAG_ALLOC
;
...
...
@@ -372,6 +371,10 @@ fatxxfs_dinode_copy(FATFS_INFO *a_fatfs, TSK_INUM_T a_inum,
else
{
flags
=
TSK_FS_META_FLAG_UNALLOC
;
}
flags
|=
(
dentry
->
name
[
0
]
==
FATXXFS_SLOT_EMPTY
?
TSK_FS_META_FLAG_UNUSED
:
TSK_FS_META_FLAG_USED
);
fs_meta
->
flags
=
(
TSK_FS_META_FLAG_ENUM
)
flags
;
if
((
dentry
->
attrib
&
FATFS_ATTR_LFN
)
==
FATFS_ATTR_LFN
)
{
...
...
This diff is collapsed.
Click to expand it.
tsk/fs/tsk_fatxxfs.h
+
1
−
0
View file @
9045a534
...
...
@@ -32,6 +32,7 @@
/* constants for first byte of name[] */
#define FATXXFS_SLOT_E5 0x05
/* actual value is 0xe5 */
#define FATXXFS_SLOT_DELETED 0xe5
#define FATXXFS_SLOT_EMPTY 0x00
/* Macro to test allocation status
* Have seen FAT image that uses non-standard flags in the short name (00 00 -> unallocated, 20 00 -> allocated)
...
...
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