From 1f506a17903f5eeaded9065e42726c1a09dc6f89 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 12 Jun 2023 19:11:35 +0200 Subject: libio: flip the meaning of the ostream_t sparse flag Instead of "open sparse", make that the default and turn it into a "no sparse" flag. Signed-off-by: David Oberhollenzer --- bin/rdsquashfs/src/fill_files.c | 2 +- bin/sqfsdiff/src/extract.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/rdsquashfs/src/fill_files.c b/bin/rdsquashfs/src/fill_files.c index afc790e..372752a 100644 --- a/bin/rdsquashfs/src/fill_files.c +++ b/bin/rdsquashfs/src/fill_files.c @@ -142,7 +142,7 @@ static int fill_files(sqfs_data_reader_t *data, int flags) openflags = OSTREAM_OPEN_OVERWRITE; if (flags & UNPACK_NO_SPARSE) - openflags |= OSTREAM_OPEN_SPARSE; + openflags |= OSTREAM_OPEN_NO_SPARSE; for (i = 0; i < num_files; ++i) { fp = ostream_open_file(files[i].path, openflags); diff --git a/bin/sqfsdiff/src/extract.c b/bin/sqfsdiff/src/extract.c index 7e745cf..a956480 100644 --- a/bin/sqfsdiff/src/extract.c +++ b/bin/sqfsdiff/src/extract.c @@ -21,8 +21,7 @@ static int extract(sqfs_data_reader_t *data, const sqfs_inode_generic_t *inode, return -1; *ptr = '/'; - fp = ostream_open_file(temp, OSTREAM_OPEN_OVERWRITE | - OSTREAM_OPEN_SPARSE); + fp = ostream_open_file(temp, OSTREAM_OPEN_OVERWRITE); if (fp == NULL) { perror(temp); return -1; -- cgit v1.2.3