From 6a218f0927c0cced058e14ee5156f10860a149d3 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 3 Oct 2019 12:11:51 +0200 Subject: Store directory index in generic inode structure This commit modifies the dir writer to store the directory index directly in the payload area of the inode it creates. The size of the index in bytes is stored in a seperate field. Storing the index is moved to the write inode function. The read inode function is in turn also modified to read the directory index from disk and actually store it in the inode structure in memory for later use. Signed-off-by: David Oberhollenzer --- include/sqfs/dir_writer.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'include/sqfs/dir_writer.h') diff --git a/include/sqfs/dir_writer.h b/include/sqfs/dir_writer.h index b47628b..bb09a86 100644 --- a/include/sqfs/dir_writer.h +++ b/include/sqfs/dir_writer.h @@ -191,20 +191,6 @@ sqfs_dir_writer_get_dir_reference(const sqfs_dir_writer_t *writer); */ SQFS_API size_t sqfs_dir_writer_get_index_size(const sqfs_dir_writer_t *writer); -/** - * @brief Write the index of the index of the last written directory to - * a meta data writer after the extended directory inode. - * - * @memberof sqfs_dir_writer_t - * - * @param writer A pointer to a directory writer object. - * @param im A pointer to a meta data writer to write the index to. - * - * @return Zero on success, a @ref E_SQFS_ERROR value on failure. - */ -SQFS_API int sqfs_dir_writer_write_index(const sqfs_dir_writer_t *writer, - sqfs_meta_writer_t *im); - /** * @brief Helper function for creating an inode from the last directory. * -- cgit v1.2.3