summaryrefslogtreecommitdiff
path: root/lib/sqfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/super.c')
-rw-r--r--lib/sqfs/super.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/sqfs/super.c b/lib/sqfs/super.c
index 18a6736..20ce420 100644
--- a/lib/sqfs/super.c
+++ b/lib/sqfs/super.c
@@ -9,8 +9,6 @@
#include "sqfs/super.h"
#include "sqfs/error.h"
-#include "sqfs/io.h"
-#include "util/util.h"
#include <string.h>
@@ -46,30 +44,3 @@ int sqfs_super_init(sqfs_super_t *super, size_t block_size, sqfs_u32 mtime,
return 0;
}
-
-int sqfs_super_write(const sqfs_super_t *super, sqfs_file_t *file)
-{
- sqfs_super_t copy;
-
- copy.magic = htole32(super->magic);
- copy.inode_count = htole32(super->inode_count);
- copy.modification_time = htole32(super->modification_time);
- copy.block_size = htole32(super->block_size);
- copy.fragment_entry_count = htole32(super->fragment_entry_count);
- copy.compression_id = htole16(super->compression_id);
- copy.block_log = htole16(super->block_log);
- copy.flags = htole16(super->flags);
- copy.id_count = htole16(super->id_count);
- copy.version_major = htole16(super->version_major);
- copy.version_minor = htole16(super->version_minor);
- copy.root_inode_ref = htole64(super->root_inode_ref);
- copy.bytes_used = htole64(super->bytes_used);
- copy.id_table_start = htole64(super->id_table_start);
- copy.xattr_id_table_start = htole64(super->xattr_id_table_start);
- copy.inode_table_start = htole64(super->inode_table_start);
- copy.directory_table_start = htole64(super->directory_table_start);
- copy.fragment_table_start = htole64(super->fragment_table_start);
- copy.export_table_start = htole64(super->export_table_start);
-
- return file->write_at(file, 0, &copy, sizeof(copy));
-}