#include "ext4_config.h"
#include "ext4_types.h"
+#include "ext4_fs.h"
+#include "ext4_dir.h"
+
#include <stdint.h>
#include <stdbool.h>
+struct ext4_dir_idx_block {
+ struct ext4_block b;
+ struct ext4_dir_idx_entry *entries;
+ struct ext4_dir_idx_entry *position;
+};
+
#define EXT4_DIR_DX_INIT_BCNT 2
+
/**@brief Initialize index structure of new directory.
* @param dir Pointer to directory i-node
* @param dir Pointer to parent directory i-node
* @return Error code
*/
int ext4_dir_dx_add_entry(struct ext4_inode_ref *parent,
- struct ext4_inode_ref *child, const char *name);
+ struct ext4_inode_ref *child, const char *name, uint32_t name_len);
/**@brief Add new entry to indexed directory
* @param dir Directory i-node