aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-21 02:32:20 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-21 02:42:47 +0200
commit64c4b80b7cd9d5adeeba30361ba3d91c45f26f00 (patch)
treedf6a0823139c9477d78329048960426f48cf4937 /lib
parent98b660135e142371431759c2a52a6ecb5457bb0d (diff)
Fix the semantics of the super block deduplication
Its purely informational, but make sure other programs don't print out scary messages that imply the data has been ineficiently. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqfs/super.c b/lib/sqfs/super.c
index c5b6fe9..0257453 100644
--- a/lib/sqfs/super.c
+++ b/lib/sqfs/super.c
@@ -29,6 +29,7 @@ int sqfs_super_init(sqfs_super_t *super, size_t block_size, sqfs_u32 mtime,
super->block_size = block_size;
super->compression_id = compressor;
super->flags = SQFS_FLAG_NO_FRAGMENTS | SQFS_FLAG_NO_XATTRS;
+ super->flags |= SQFS_FLAG_NO_DUPLICATES;
super->version_major = SQFS_VERSION_MAJOR;
super->version_minor = SQFS_VERSION_MINOR;
super->bytes_used = sizeof(*super);