* @brief Ext4 high level operations (file, directory, mountpoints...)\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_blockdev.h>\r
-#include <ext4_types.h>\r
-#include <ext4_debug.h>\r
-#include <ext4_errno.h>\r
-#include <ext4_fs.h>\r
-#include <ext4_dir.h>\r
-#include <ext4_inode.h>\r
-#include <ext4_super.h>\r
-#include <ext4_dir_idx.h>\r
+#include "ext4_config.h"\r
+#include "ext4_blockdev.h"\r
+#include "ext4_types.h"\r
+#include "ext4_debug.h"\r
+#include "ext4_errno.h"\r
+#include "ext4_fs.h"\r
+#include "ext4_dir.h"\r
+#include "ext4_inode.h"\r
+#include "ext4_super.h"\r
+#include "ext4_dir_idx.h"\r
+#include "ext4.h"\r
\r
#include <stdlib.h>\r
#include <string.h>\r
\r
-#include <ext4.h>\r
+\r
\r
/**@brief Mount point OS dependent lock*/\r
#define EXT4_MP_LOCK(_m) \\r
#ifndef EXT4_H_\r
#define EXT4_H_\r
\r
-#include <ext4_config.h>\r
-#include <ext4_blockdev.h>\r
+#include "ext4_config.h"\r
+#include "ext4_blockdev.h"\r
+\r
#include <stdint.h>\r
\r
/********************************FILE OPEN FLAGS*****************************/\r
* @brief Physical block allocator.
*/
-#include <ext4_config.h>
-#include <ext4_balloc.h>
-#include <ext4_super.h>
-#include <ext4_block_group.h>
-#include <ext4_fs.h>
-#include <ext4_bitmap.h>
-#include <ext4_inode.h>
+#include "ext4_config.h"
+#include "ext4_balloc.h"
+#include "ext4_super.h"
+#include "ext4_block_group.h"
+#include "ext4_fs.h"
+#include "ext4_bitmap.h"
+#include "ext4_inode.h"
/**@brief Compute number of block group from block address.
* @param sb Superblock pointer.
#ifndef EXT4_BALLOC_H_
#define EXT4_BALLOC_H_
-#include <ext4_config.h>
-#include <ext4_types.h>
+#include "ext4_config.h"
+#include "ext4_types.h"
#include <stdint.h>
#include <stdbool.h>
* @brief Block cache allocator.\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_bcache.h>\r
-#include <ext4_debug.h>\r
-#include <ext4_errno.h>\r
+#include "ext4_config.h"\r
+#include "ext4_bcache.h"\r
+#include "ext4_debug.h"\r
+#include "ext4_errno.h"\r
\r
#include <string.h>\r
#include <stdlib.h>\r
#ifndef EXT4_BCACHE_H_\r
#define EXT4_BCACHE_H_\r
\r
-#include <ext4_config.h>\r
+#include "ext4_config.h"\r
\r
#include <stdint.h>\r
#include <stdbool.h>\r
* @brief Block/inode bitmap allocator.
*/
-#include <ext4_config.h>
-#include <ext4_bitmap.h>
+#include "ext4_config.h"
+#include "ext4_bitmap.h"
-#include <ext4_errno.h>
+#include "ext4_errno.h"
void ext4_bmap_bits_free(uint8_t *bmap, uint32_t sbit, uint32_t bcnt)
{
#ifndef EXT4_BITMAP_H_
#define EXT4_BITMAP_H_
-#include <ext4_config.h>
+#include "ext4_config.h"
+
#include <stdint.h>
#include <stdbool.h>
* @brief Block group function set.
*/
-#include <ext4_config.h>
-#include <ext4_block_group.h>
+#include "ext4_config.h"
+#include "ext4_block_group.h"
/**@brief CRC-16 look up table*/
static uint16_t const crc16_tab[256] = {
#ifndef EXT4_BLOCK_GROUP_H_
#define EXT4_BLOCK_GROUP_H_
-#include <ext4_config.h>
-#include <ext4_types.h>
-#include <ext4_super.h>
+#include "ext4_config.h"
+#include "ext4_types.h"
+#include "ext4_super.h"
#include <stdint.h>
#include <stdbool.h>
* @brief Block device module.
*/
-#include <ext4_config.h>
-#include <ext4_blockdev.h>
-#include <ext4_errno.h>
-#include <ext4_debug.h>
+#include "ext4_config.h"
+#include "ext4_blockdev.h"
+#include "ext4_errno.h"
+#include "ext4_debug.h"
#include <string.h>
#include <stdlib.h>
* @brief Block device module.
*/
-#include <ext4_config.h>
-#include <ext4_bcache.h>
-#include <ext4_debug.h>
+#include "ext4_config.h"
+#include "ext4_bcache.h"
+#include "ext4_debug.h"
#include <stdbool.h>
#include <stdint.h>
* @brief Crc32c routine. Taken from FreeBSD kernel.
*/
-#include <ext4_config.h>
-#include <ext4_crc32c.h>
+#include "ext4_config.h"
+#include "ext4_crc32c.h"
/* */
/* CRC LOOKUP TABLE */
#ifndef LWEXT4_EXT4_CRC32C_H_
#define LWEXT4_EXT4_CRC32C_H_
-#include <ext4_config.h>
+#include "ext4_config.h"
+
#include <stdint.h>
/**@brief CRC32C algorithm.
* @brief Debug printf and assert macros.
*/
-#include <ext4_config.h>
-#include <ext4_debug.h>
+#include "ext4_config.h"
+#include "ext4_debug.h"
#include <stdarg.h>
#include <stdio.h>
#ifndef EXT4_DEBUG_H_
#define EXT4_DEBUG_H_
-#include <ext4_config.h>
-#include <ext4_errno.h>
+#include "ext4_config.h"
+#include "ext4_errno.h"
+
#include <stdint.h>
#include <stdio.h>
* @brief Directory handle procedures.\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_dir.h>\r
-#include <ext4_dir_idx.h>\r
-#include <ext4_inode.h>\r
-#include <ext4_fs.h>\r
+#include "ext4_config.h"\r
+#include "ext4_dir.h"\r
+#include "ext4_dir_idx.h"\r
+#include "ext4_inode.h"\r
+#include "ext4_fs.h"\r
\r
#include <string.h>\r
\r
#ifndef EXT4_DIR_H_\r
#define EXT4_DIR_H_\r
\r
-#include <ext4_config.h>\r
-#include <ext4_types.h>\r
-#include <ext4_blockdev.h>\r
-#include <ext4_super.h>\r
+#include "ext4_config.h"\r
+#include "ext4_types.h"\r
+#include "ext4_blockdev.h"\r
+#include "ext4_super.h"\r
\r
#include <stdint.h>\r
\r
* @brief Directory indexing procedures.\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_dir_idx.h>\r
-#include <ext4_dir.h>\r
-#include <ext4_blockdev.h>\r
-#include <ext4_fs.h>\r
-#include <ext4_super.h>\r
-#include <ext4_hash.h>\r
+#include "ext4_config.h"\r
+#include "ext4_dir_idx.h"\r
+#include "ext4_dir.h"\r
+#include "ext4_blockdev.h"\r
+#include "ext4_fs.h"\r
+#include "ext4_super.h"\r
+#include "ext4_hash.h"\r
\r
#include <string.h>\r
#include <stdlib.h>\r
#ifndef EXT4_DIR_IDX_H_\r
#define EXT4_DIR_IDX_H_\r
\r
-#include <ext4_config.h>\r
-#include <ext4_types.h>\r
+#include "ext4_config.h"\r
+#include "ext4_types.h"\r
\r
#include <stdint.h>\r
#include <stdbool.h>\r
#ifndef EXT4_ERRNO_H_
#define EXT4_ERRNO_H_
-#include <ext4_config.h>
+#include "ext4_config.h"
#if !CONFIG_HAVE_OWN_ERRNO
#include <errno.h>
* @brief More complex filesystem functions.\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_extent.h>\r
-#include <ext4_inode.h>\r
-#include <ext4_super.h>\r
-#include <ext4_blockdev.h>\r
-#include <ext4_balloc.h>\r
+#include "ext4_config.h"\r
+#include "ext4_extent.h"\r
+#include "ext4_inode.h"\r
+#include "ext4_super.h"\r
+#include "ext4_blockdev.h"\r
+#include "ext4_balloc.h"\r
\r
#include <string.h>\r
#include <stdlib.h>\r
#ifndef EXT4_EXTENT_H_\r
#define EXT4_EXTENT_H_\r
\r
-#include <ext4_config.h>\r
-#include <ext4_types.h>\r
+#include "ext4_config.h"\r
+#include "ext4_types.h"\r
\r
/**@brief Get logical number of the block covered by extent.\r
* @param extent Extent to load number from\r
* @brief More complex filesystem functions.
*/
-#include <ext4_config.h>
-#include <ext4_types.h>
-#include <ext4_fs.h>
-#include <ext4_errno.h>
-#include <ext4_blockdev.h>
-#include <ext4_super.h>
-#include <ext4_debug.h>
-#include <ext4_block_group.h>
-#include <ext4_balloc.h>
-#include <ext4_bitmap.h>
-#include <ext4_inode.h>
-#include <ext4_ialloc.h>
-#include <ext4_extent.h>
+#include "ext4_config.h"
+#include "ext4_types.h"
+#include "ext4_fs.h"
+#include "ext4_errno.h"
+#include "ext4_blockdev.h"
+#include "ext4_super.h"
+#include "ext4_debug.h"
+#include "ext4_block_group.h"
+#include "ext4_balloc.h"
+#include "ext4_bitmap.h"
+#include "ext4_inode.h"
+#include "ext4_ialloc.h"
+#include "ext4_extent.h"
+
#include <string.h>
int ext4_fs_init(struct ext4_fs *fs, struct ext4_blockdev *bdev)
#ifndef EXT4_FS_H_
#define EXT4_FS_H_
-#include <ext4_config.h>
-#include <ext4_types.h>
+#include "ext4_config.h"
+#include "ext4_types.h"
#include <stdint.h>
#include <stdbool.h>
* @brief Directory indexing hash functions.\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_types.h>\r
+#include "ext4_config.h"\r
+#include "ext4_types.h"\r
+#include "ext4_errno.h"\r
+\r
#include <string.h>\r
-#include <ext4_errno.h>\r
+\r
\r
/* F, G, and H are MD4 functions */\r
#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))\r
#ifndef EXT4_HASH_H_\r
#define EXT4_HASH_H_\r
\r
-#include <ext4_config.h>\r
+#include "ext4_config.h"\r
\r
#include <stdint.h>\r
\r
* @brief Inode allocation procedures.\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_types.h>\r
-#include <ext4_ialloc.h>\r
-#include <ext4_super.h>\r
-#include <ext4_fs.h>\r
-#include <ext4_blockdev.h>\r
-#include <ext4_block_group.h>\r
-#include <ext4_bitmap.h>\r
+#include "ext4_config.h"\r
+#include "ext4_types.h"\r
+#include "ext4_ialloc.h"\r
+#include "ext4_super.h"\r
+#include "ext4_fs.h"\r
+#include "ext4_blockdev.h"\r
+#include "ext4_block_group.h"\r
+#include "ext4_bitmap.h"\r
\r
/**@brief Convert i-node number to relative index in block group.\r
* @param sb Superblock\r
extern "C" {\r
#endif\r
\r
-#include <ext4_config.h>\r
-#include <ext4_types.h>\r
+#include "ext4_config.h"\r
+#include "ext4_types.h"\r
\r
/**@brief Free i-node number and modify filesystem data structers.\r
* @param fs Filesystem, where the i-node is located\r
* @brief Inode handle functions\r
*/\r
\r
-#include <ext4_config.h>\r
-#include <ext4_types.h>\r
-#include <ext4_inode.h>\r
-#include <ext4_super.h>\r
+#include "ext4_config.h"\r
+#include "ext4_types.h"\r
+#include "ext4_inode.h"\r
+#include "ext4_super.h"\r
\r
/**@brief Compute number of bits for block count.\r
* @param block_size Filesystem block_size\r
#ifndef EXT4_INODE_H_\r
#define EXT4_INODE_H_\r
\r
-#include <ext4_config.h>\r
+#include "ext4_config.h"\r
+\r
#include <stdint.h>\r
\r
/**@brief Get mode of the i-node.\r
* @brief Superblock operations.
*/
-#include <ext4_config.h>
-#include <ext4_super.h>
+#include "ext4_config.h"
+#include "ext4_super.h"
uint32_t ext4_block_group_cnt(struct ext4_sblock *s)
{
#ifndef EXT4_SUPER_H_
#define EXT4_SUPER_H_
-#include <ext4_config.h>
-#include <ext4_types.h>
+#include "ext4_config.h"
+#include "ext4_types.h"
/**@brief Blocks count get stored in superblock.
* @param s superblock descriptor
#ifndef EXT4_TYPES_H_
#define EXT4_TYPES_H_
-#include <ext4_config.h>
-#include <ext4_blockdev.h>
+#include "ext4_config.h"
+#include "ext4_blockdev.h"
#include <stdint.h>