diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-27 17:28:43 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-28 16:33:57 +0200 |
commit | f7fa69e896f0971629f938be93cb30865f92943c (patch) | |
tree | db6dd754b95cec7db7a274c882c5eb07e5982e3d /lib/sqfs/data_reader.c | |
parent | 256c2458a4fa298c876d8e4a4450cb9a0834b877 (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/data_reader.c')
-rw-r--r-- | lib/sqfs/data_reader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqfs/data_reader.c b/lib/sqfs/data_reader.c index 5facaa1..a7d605e 100644 --- a/lib/sqfs/data_reader.c +++ b/lib/sqfs/data_reader.c @@ -205,8 +205,7 @@ int data_reader_dump_file(data_reader_t *data, file_info_t *fi, int outfd, size_t fragsz = fi->size % data->block_size; size_t count = fi->size / data->block_size; - if (fragsz != 0 && (fi->fragment == 0xFFFFFFFF || - fi->fragment_offset == 0xFFFFFFFF)) { + if (fragsz != 0 && !(fi->flags & FILE_FLAG_HAS_FRAGMENT)) { fragsz = 0; ++count; } |