diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-15 17:01:04 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-16 14:46:24 +0100 |
commit | 7f567bb6ee1954e2d8a886b1d3dcb8cb4a1ed486 (patch) | |
tree | 2415e990e0e6b63fd092d6c6f7fdaf63ccf014ad /include/common.h | |
parent | 5e2298a3a3f00e6f55ceda2b1c35192d67c9feb4 (diff) |
Use the sqfs_dir_writer_t to create the NFS export table
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/include/common.h b/include/common.h index 38237a0..8b2c66c 100644 --- a/include/common.h +++ b/include/common.h @@ -46,6 +46,9 @@ typedef struct { typedef struct { sqfs_data_writer_t *data; + sqfs_dir_writer_t *dirwr; + sqfs_meta_writer_t *dm; + sqfs_meta_writer_t *im; sqfs_compressor_t *cmp; sqfs_id_table_t *idtbl; sqfs_file_t *outfile; @@ -87,18 +90,7 @@ typedef struct { Returns 0 on success. Prints error messages to stderr on failure. */ -int sqfs_serialize_fstree(const char *filename, sqfs_file_t *file, - sqfs_super_t *super, fstree_t *fs, - sqfs_compressor_t *cmp, sqfs_id_table_t *idtbl); - -/* - Generate an NFS export table. - - Returns 0 on success. Prints error messages to stderr on failure. - */ -int write_export_table(const char *filename, sqfs_file_t *file, - fstree_t *fs, sqfs_super_t *super, - sqfs_compressor_t *cmp); +int sqfs_serialize_fstree(const char *filename, sqfs_writer_t *wr); /* Print out fancy statistics for squashfs packing tools */ void sqfs_print_statistics(sqfs_super_t *super, data_writer_stats_t *stats); |