summaryrefslogtreecommitdiff
path: root/lib/sqfs/tree_node_from_inode.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-27 17:28:43 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-28 16:33:57 +0200
commitf7fa69e896f0971629f938be93cb30865f92943c (patch)
treedb6dd754b95cec7db7a274c882c5eb07e5982e3d /lib/sqfs/tree_node_from_inode.c
parent256c2458a4fa298c876d8e4a4450cb9a0834b877 (diff)
Add general purpose flags field to file_info_t
Simplifies some task if we can just add a flag that a file has a framgent or that it has already been detected as a duplicate. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/tree_node_from_inode.c')
-rw-r--r--lib/sqfs/tree_node_from_inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqfs/tree_node_from_inode.c b/lib/sqfs/tree_node_from_inode.c
index 034218c..84ebbb2 100644
--- a/lib/sqfs/tree_node_from_inode.c
+++ b/lib/sqfs/tree_node_from_inode.c
@@ -50,6 +50,8 @@ static void copy_block_sizes(sqfs_inode_generic_t *inode, tree_node_t *out,
if (out->data.file->fragment == 0xFFFFFFFF ||
out->data.file->fragment_offset == 0xFFFFFFFF) {
++block_count;
+ } else {
+ out->data.file->flags |= FILE_FLAG_HAS_FRAGMENT;
}
}