Home
last modified time | relevance | path

Searched refs:inode_offset (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/subsys/fs/ext2/
Dext2_format.c312 int inode_offset; in ext2_format() local
317 inode_offset = EXT2_ROOT_INODE - 1; in ext2_format()
318 default_directory_inode(&in[inode_offset], 1, cfg); in ext2_format()
320 in[inode_offset].i_links_count = sys_cpu_to_le16(3); /* 2 from itself, 1 from child */ in ext2_format()
321 in[inode_offset].i_block[0] = sys_cpu_to_le32(root_dir_blk_num); in ext2_format()
328 inode_offset = (lost_found_inode - 1) % inodes_per_block; /* We count inodes from 1 */ in ext2_format()
330 LOG_DBG("Inode offset: %d", inode_offset); in ext2_format()
340 default_directory_inode(&in[inode_offset], 1, cfg); in ext2_format()
341 in[inode_offset].i_links_count = sys_cpu_to_le16(2); /* 1 from itself, 1 from parent */ in ext2_format()
342 in[inode_offset].i_block[0] = sys_cpu_to_le32(lost_found_dir_blk_num); in ext2_format()