diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-26 19:01:28 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-26 19:01:28 +0200 |
commit | 430e173af5d20ad68f6b5720e6d341b06c5b4858 (patch) | |
tree | 7767b6e75bc626d7083173884b9c1c21c1b7bbeb /include/highlevel.h | |
parent | fa66e0d92d1441ab95d720728f1fb54177d5edd5 (diff) |
Remove old data writer flags, and unused parameters
- The write_data_from_file function no longer needs the block size
- Also remove the old data writer flags, pass the flags argument
directly to the begin-file function.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/highlevel.h')
-rw-r--r-- | include/highlevel.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/highlevel.h b/include/highlevel.h index 5bc4a96..77360f0 100644 --- a/include/highlevel.h +++ b/include/highlevel.h @@ -43,19 +43,6 @@ typedef struct { uint64_t bytes_read; } data_writer_stats_t; -enum { - /* Don't generate fragments, always write the last block to disk as a - block, even if it is incomplete. */ - DW_DONT_FRAGMENT = 0x01, - - /* Intentionally write all blocks uncompressed. */ - DW_DONT_COMPRESS = 0x02, - - /* Make sure the first block of a file is alligned to - device block size */ - DW_ALLIGN_DEVBLK = 0x04, -}; - /* High level helper function to serialize an entire file system tree to a squashfs inode table and directory table. @@ -116,6 +103,6 @@ sqfs_file_t *sqfs_get_stdin_file(const sparse_map_t *map, uint64_t size); void register_stat_hooks(sqfs_data_writer_t *data, data_writer_stats_t *stats); int write_data_from_file(sqfs_data_writer_t *data, sqfs_inode_generic_t *inode, - sqfs_file_t *file, size_t block_size, int flags); + sqfs_file_t *file, int flags); #endif /* HIGHLEVEL_H */ |