diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-05 23:18:30 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-05 23:18:30 +0200 |
commit | 6261ef9505abb26d79cc48f24bce0d4de8419a45 (patch) | |
tree | 33069695fd0723e10ff5c0e7eb1748d709de5e3d /lib/sqfshelper/write_export_table.c | |
parent | 40b75c24b1586e4d7ad8a9f4c14dc0b3ff99b8cd (diff) |
Improve error reporting for tar2sqfs and gensquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper/write_export_table.c')
-rw-r--r-- | lib/sqfshelper/write_export_table.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqfshelper/write_export_table.c b/lib/sqfshelper/write_export_table.c index 857cb5e..154688e 100644 --- a/lib/sqfshelper/write_export_table.c +++ b/lib/sqfshelper/write_export_table.c @@ -12,7 +12,8 @@ #include <stdlib.h> #include <stdio.h> -int write_export_table(sqfs_file_t *file, fstree_t *fs, sqfs_super_t *super, +int write_export_table(const char *filename, sqfs_file_t *file, + fstree_t *fs, sqfs_super_t *super, sqfs_compressor_t *cmp) { sqfs_u64 *table, start; @@ -35,6 +36,8 @@ int write_export_table(sqfs_file_t *file, fstree_t *fs, sqfs_super_t *super, size = sizeof(sqfs_u64) * fs->inode_tbl_size; ret = sqfs_write_table(file, cmp, table, size, &start); + if (ret) + sqfs_perror(filename, "writing NFS export table", ret); super->export_table_start = start; super->flags |= SQFS_FLAG_EXPORTABLE; |