Skip to content

Commit d89f264

Browse files
committed
Merge branch 'feature/uuid-walkfs' of https://github.com/loaflover/dissect.target into feature/uuid-walkfs
2 parents c84310f + 5a739d0 commit d89f264

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

dissect/target/plugins/filesystem/walkfs.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
("string[]", "attr"),
3434
("string[]", "fs_types"),
3535
("string[]", "volume_identifiers"),
36-
("string[]", "disk_identifiers"),
3736
],
3837
)
3938

@@ -132,18 +131,15 @@ def generate_record(target: Target, entry: FilesystemEntry, capability: bool) ->
132131

133132
if isinstance(entry, LayerFilesystemEntry):
134133
fs_types = []
135-
volume_uuids = []
136134
volume_identifiers = []
137135

138136
for sub_entry in entry.entries:
139137
fs_types.append(sub_entry.fs.__type__)
140-
volume_uuids.append(sub_entry.fs.identifier)
141-
volume_identifiers.append(get_disk_serial(sub_entry.fs))
138+
volume_identifiers.append(sub_entry.fs.identifier)
142139

143140
else:
144141
fs_types = [entry.fs.__type__]
145-
volume_uuids = [entry.fs.identifier]
146-
volume_identifiers = [get_disk_serial(entry.fs)]
142+
volume_identifiers = [entry.fs.identifier]
147143

148144
fields = {
149145
"atime": from_unix(entry_stat.st_atime),
@@ -158,8 +154,7 @@ def generate_record(target: Target, entry: FilesystemEntry, capability: bool) ->
158154
"gid": entry_stat.st_gid,
159155
"is_suid": bool(entry_stat.st_mode & stat.S_ISUID),
160156
"fs_types": fs_types,
161-
"volume_identifiers": volume_uuids,
162-
"disk_identifiers": volume_identifiers,
157+
"volume_identifiers": volume_identifiers,
163158
}
164159

165160
try:

0 commit comments

Comments
 (0)