Skip to content
Snippets Groups Projects
Commit cce7f1ba authored by Peter J. Martel's avatar Peter J. Martel
Browse files

Increment sequence number

parent db2bd193
No related branches found
No related tags found
No related merge requests found
...@@ -547,6 +547,8 @@ TskAutoDb::processAttribute(TSK_FS_FILE * fs_file, ...@@ -547,6 +547,8 @@ TskAutoDb::processAttribute(TSK_FS_FILE * fs_file,
if ((m_blkMapFlag) && (isNonResident(fs_attr)) if ((m_blkMapFlag) && (isNonResident(fs_attr))
&& (isDotDir(fs_file, path) == 0)) { && (isDotDir(fs_file, path) == 0)) {
TSK_FS_ATTR_RUN *run; TSK_FS_ATTR_RUN *run;
int sequence = 0;
for (run = fs_attr->nrd.run; run != NULL; run = run->next) { for (run = fs_attr->nrd.run; run != NULL; run = run->next) {
unsigned int block_size = fs_file->fs_info->block_size; unsigned int block_size = fs_file->fs_info->block_size;
...@@ -556,7 +558,7 @@ TskAutoDb::processAttribute(TSK_FS_FILE * fs_file, ...@@ -556,7 +558,7 @@ TskAutoDb::processAttribute(TSK_FS_FILE * fs_file,
// @@@ We probaly want ot keep on going here // @@@ We probaly want ot keep on going here
if (m_db->addFsBlockInfo(m_curFsId, m_curFileId, if (m_db->addFsBlockInfo(m_curFsId, m_curFileId,
run->addr * block_size, run->len * block_size, 0)) { run->addr * block_size, run->len * block_size, sequence++)) {
return TSK_ERR; return TSK_ERR;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment