gkostka [Thu, 3 Dec 2015 19:54:32 +0000 (20:54 +0100)]
ext4_balloc: indentation, style and comment fixes
gkostka [Thu, 3 Dec 2015 07:39:18 +0000 (08:39 +0100)]
Add lock/unlock mountpoint to ext4_recover
gkostka [Wed, 2 Dec 2015 12:13:41 +0000 (13:13 +0100)]
Set std=gnu11 as default
gkostka [Wed, 2 Dec 2015 12:12:52 +0000 (13:12 +0100)]
Change preprocessor macros to inline functions
ngkaho1234 [Wed, 2 Dec 2015 11:36:23 +0000 (19:36 +0800)]
ext4_bcache & ext4_blockdev: unify buffer flushing code.
gkostka [Wed, 2 Dec 2015 07:54:27 +0000 (08:54 +0100)]
Readme update
ngkaho1234 [Tue, 1 Dec 2015 16:31:24 +0000 (16:31 +0000)]
ext4_journal: do simple verification on jbd superblock.
gkostka [Mon, 30 Nov 2015 08:38:20 +0000 (09:38 +0100)]
ext4: introduce ext4_recover function
ngkaho1234 [Sun, 29 Nov 2015 15:43:54 +0000 (15:43 +0000)]
ext4_journal: fix wrong parsing of revoke block.
gkostka [Sun, 29 Nov 2015 10:03:37 +0000 (11:03 +0100)]
Add license header to ext4_journal
gkostka [Sun, 29 Nov 2015 10:00:46 +0000 (11:00 +0100)]
Fix avrxmega7 build
gkostka [Sun, 29 Nov 2015 09:58:52 +0000 (10:58 +0100)]
Fix compile warnings
ngkaho1234 [Sun, 29 Nov 2015 02:57:05 +0000 (02:57 +0000)]
ext4_journal: try to detect if any blocks are revoked in a transaction.
ngkaho1234 [Sun, 29 Nov 2015 02:44:49 +0000 (02:44 +0000)]
ext4_journal: simplify the code logic of superblock replaying.
ngkaho1234 [Sat, 28 Nov 2015 20:38:33 +0000 (20:38 +0000)]
ext4_journal: simple handling on superblock.
ngkaho1234 [Sat, 28 Nov 2015 20:27:54 +0000 (20:27 +0000)]
ext4_journal: initial journal replay support part 2.
ngkaho1234 [Sat, 28 Nov 2015 20:09:27 +0000 (04:09 +0800)]
ext4_journal: initial journal replay support.
ngkaho1234 [Sat, 28 Nov 2015 19:30:26 +0000 (03:30 +0800)]
ext4_journal: fix wrong parsing of revoke blocks list.
ngkaho1234 [Sat, 28 Nov 2015 18:13:18 +0000 (18:13 +0000)]
ext4_journal: add building revoke tree.
ngkaho1234 [Sat, 28 Nov 2015 16:39:32 +0000 (16:39 +0000)]
ext4_journal: fix block_tag flag being wrongly parsed...
ngkaho1234 [Sat, 28 Nov 2015 14:51:21 +0000 (14:51 +0000)]
ext4_journal: initial support of processing block_tags array.
ngkaho1234 [Thu, 26 Nov 2015 11:09:28 +0000 (11:09 +0000)]
ext4_journal: fix ext4_block not being freed.
ngkaho1234 [Thu, 26 Nov 2015 11:01:13 +0000 (11:01 +0000)]
ext4_journal.c: journal replay skeletal code.
ngkaho1234 [Tue, 24 Nov 2015 15:09:23 +0000 (15:09 +0000)]
ext4_bcache: clear BC_DIRTY flag when buffer will be dropped.
gkostka [Tue, 24 Nov 2015 06:33:19 +0000 (07:33 +0100)]
Change duplicated functions (to_le*/to_be*) to reorder*
to_le*/to_be* now are macros with suitable endianes expansion
gkostka [Mon, 23 Nov 2015 17:12:26 +0000 (18:12 +0100)]
Fix lru/lba compare functions: possible overflow
Functions will not work for lba values:
- 0x100000001ULL - 0x000000001UL
It won't work also for 16 int architectures. So it is better to
implement this functions using if/else if statements.
ngkaho1234 [Mon, 23 Nov 2015 15:07:01 +0000 (15:07 +0000)]
ext4_bcache: remove free_delay member from ext4_bcache.
ngkaho1234 [Mon, 23 Nov 2015 14:28:09 +0000 (14:28 +0000)]
ext4_bcache: add comments to the changes.
ngkaho1234 [Mon, 23 Nov 2015 13:39:29 +0000 (13:39 +0000)]
ext4_bcache: fix return value of ext4_buf_lowest_lru (lba -> lru)
ngkaho1234 [Mon, 23 Nov 2015 13:26:56 +0000 (13:26 +0000)]
ext4_bcache & ext4_blockdev: Buffer cache rework.
ngkaho1234 [Sat, 21 Nov 2015 05:31:57 +0000 (05:31 +0000)]
ext4_journal: add journal helpers to ext4_journal.h
ngkaho1234 [Fri, 20 Nov 2015 16:01:06 +0000 (16:01 +0000)]
ext4_journal: try to read jbd superblock when loading jbd.
ngkaho1234 [Sun, 15 Nov 2015 09:25:38 +0000 (17:25 +0800)]
ext4_journal: two changes below
- Add JBD_SUPERBLOCK_SIZE macro
- Add jbd_sb_read & jbd_sb_write
ngkaho1234 [Sat, 14 Nov 2015 14:46:30 +0000 (22:46 +0800)]
ext4_journal: add block_get(_noread)/block_set.
ngkaho1234 [Fri, 13 Nov 2015 15:38:37 +0000 (23:38 +0800)]
Journalling(JBD) support skeletal code.
gkostka [Sat, 21 Nov 2015 17:59:15 +0000 (18:59 +0100)]
Refactor some problematic (too long) dir entry data structures
gkostka [Sat, 21 Nov 2015 17:32:54 +0000 (18:32 +0100)]
Style & indentation improvements in ext4 part 3
gkostka [Sat, 21 Nov 2015 16:52:55 +0000 (17:52 +0100)]
Style & indentation improvements in ext4 part 2
gkostka [Sat, 21 Nov 2015 16:21:11 +0000 (17:21 +0100)]
Refactoring: directrory entry prefix: EXT4_DIRENTRY* -> EXT4_DE*
gkostka [Sat, 21 Nov 2015 16:14:44 +0000 (17:14 +0100)]
Style & indentation improvements in ext4
gkostka [Sat, 21 Nov 2015 15:28:29 +0000 (16:28 +0100)]
Style/indentation fix in ext4_dir
gkostka [Thu, 19 Nov 2015 22:30:03 +0000 (23:30 +0100)]
Rename 'initialize_dir_tail' to 'ext4_dir_init_entry_tail'
gkostka [Thu, 19 Nov 2015 22:27:44 +0000 (23:27 +0100)]
Add #ifdef __cplusplus to all header files
gkostka [Thu, 19 Nov 2015 22:11:45 +0000 (23:11 +0100)]
Style/indentation fix in ext4_ialloc
gkostka [Thu, 19 Nov 2015 21:56:10 +0000 (22:56 +0100)]
Fix style/indentaton in ext4_inode
gkostka [Thu, 19 Nov 2015 21:45:16 +0000 (22:45 +0100)]
Remove some obsolete comments
gkostka [Thu, 19 Nov 2015 21:38:24 +0000 (22:38 +0100)]
Set new default configuration (remove some unnecessary definitions)
gkostka [Thu, 19 Nov 2015 20:54:14 +0000 (21:54 +0100)]
Fix compile warning
gkostka [Thu, 19 Nov 2015 20:24:32 +0000 (21:24 +0100)]
Style improve and code format in ext4_dir_idx module
gkostka [Tue, 17 Nov 2015 23:46:25 +0000 (00:46 +0100)]
Change assert in ext4_balloc to debug warning message
gkostka [Tue, 17 Nov 2015 23:17:11 +0000 (00:17 +0100)]
Code format in bcache & blockdev
gkostka [Tue, 17 Nov 2015 23:11:35 +0000 (00:11 +0100)]
Code format in ext4_balloc
gkostka [Tue, 17 Nov 2015 22:25:29 +0000 (23:25 +0100)]
Add to mkfs tool multiple features
1. Filesystem type selection from cli: ext2, ext3, ext4
2. Limit block sizes to: 1024, 2048, 4096
3. Free block calculation fix
gkostka [Tue, 17 Nov 2015 21:16:20 +0000 (22:16 +0100)]
Improve bg init in mkfs
gkostka [Tue, 17 Nov 2015 20:24:05 +0000 (21:24 +0100)]
Add block size cli option to mkfs tool
gkostka [Tue, 17 Nov 2015 20:07:22 +0000 (21:07 +0100)]
Multiple style fixes in ext4_fs
gkostka [Tue, 17 Nov 2015 19:16:59 +0000 (20:16 +0100)]
Fix style and indentation in ext4_fs module
1. ext4_fs_init_block_bitmap
2. ext4_fs_init_inode_bitmap
3. ext4_fs_init_inode_table
gkostka [Tue, 17 Nov 2015 14:48:55 +0000 (15:48 +0100)]
Add ext4_mkfs_read_info after mkfs & printf filesystem info
gkostka [Tue, 17 Nov 2015 14:39:28 +0000 (15:39 +0100)]
Indroduce verbose mode to lwext4_mkfs tool
gkostka [Tue, 17 Nov 2015 14:37:22 +0000 (15:37 +0100)]
Add extra debug information
gkostka [Tue, 17 Nov 2015 00:18:47 +0000 (01:18 +0100)]
Add to mkfs configurable descriptor size & hash seed init
gkostka [Tue, 17 Nov 2015 00:16:41 +0000 (01:16 +0100)]
Clear ext4_dir_idx_root in ext4_dir_dx_init
gkostka [Tue, 17 Nov 2015 00:15:36 +0000 (01:15 +0100)]
Code format
gkostka [Mon, 16 Nov 2015 23:10:39 +0000 (00:10 +0100)]
Move search result intit to begin of ext4_dir_find_entry
gkostka [Mon, 16 Nov 2015 22:22:19 +0000 (23:22 +0100)]
Create root & lost+found directories as index inodes if possible
gkostka [Mon, 16 Nov 2015 22:04:45 +0000 (23:04 +0100)]
Mkfs works for ext2/ext3 features
gkostka [Mon, 16 Nov 2015 21:28:06 +0000 (22:28 +0100)]
Introduce init_bgs in mkfs module
gkostka [Mon, 16 Nov 2015 20:28:08 +0000 (21:28 +0100)]
Create default directory structure in mkfs
gkostka [Mon, 16 Nov 2015 19:39:15 +0000 (20:39 +0100)]
Code format
gkostka [Mon, 16 Nov 2015 19:29:36 +0000 (20:29 +0100)]
Sblock fill by using to_le32/to_le_16 macros & drop gdt_reserved blocks
gkostka [Mon, 16 Nov 2015 19:28:02 +0000 (20:28 +0100)]
Add ext4_sb_set_blocks_cnt
gkostka [Sun, 15 Nov 2015 23:32:28 +0000 (00:32 +0100)]
Add mkfs_initial and default inodes alocation
gkostka [Sun, 15 Nov 2015 22:11:34 +0000 (23:11 +0100)]
Block group descriptors write in mkfs module
gkostka [Sun, 15 Nov 2015 22:01:21 +0000 (23:01 +0100)]
Enable debug in lwext4_mkfs tool
gkostka [Sun, 15 Nov 2015 21:59:57 +0000 (22:59 +0100)]
Set cache dynamic as default in generic application
gkostka [Sun, 15 Nov 2015 21:59:05 +0000 (22:59 +0100)]
Add some helper functions to ext4_block_group.h
gkostka [Sun, 15 Nov 2015 21:57:32 +0000 (22:57 +0100)]
Return success when 0 block read/write is called
ngkaho1234 [Sun, 15 Nov 2015 09:24:41 +0000 (17:24 +0800)]
ext4_mkfs: use EXT4_SUPERBLOCK_SIZE instead of sizeof op.
gkostka [Sat, 14 Nov 2015 11:18:44 +0000 (12:18 +0100)]
ext4_mkfs is able to create image with sblock and basic features
TBD:
- block groups descriptors
- ext3/ext4 feature handling
- root and lost+found directories
- journal inode
gkostka [Sat, 14 Nov 2015 11:17:25 +0000 (12:17 +0100)]
Remove obsolete feature flag
ngkaho1234 [Sat, 14 Nov 2015 10:52:15 +0000 (10:52 +0000)]
define _LARGEFILE64_SOURCE to be able to access large files.
ngkaho1234 [Sat, 14 Nov 2015 10:55:45 +0000 (10:55 +0000)]
ext4_mkfs: fix SIGSEGV caused by inaccurate memory allocation size.
gkostka [Fri, 13 Nov 2015 22:35:51 +0000 (23:35 +0100)]
Add lwext4_mkfs tool skeleton
gkostka [Fri, 13 Nov 2015 21:14:03 +0000 (22:14 +0100)]
Move all test modules to fs_test directory
gkostka [Fri, 13 Nov 2015 21:10:59 +0000 (22:10 +0100)]
Add block device skeleton module
gkostka [Fri, 13 Nov 2015 21:09:07 +0000 (22:09 +0100)]
Remove obsolete chibios block devices
ngkaho1234 [Tue, 10 Nov 2015 04:07:50 +0000 (04:07 +0000)]
Replace ext4_block_get with ext4_block_get_noread:
ext4_dir, ext4_dir_idx, ext4_extent, ext4_fs
ngkaho1234 [Mon, 9 Nov 2015 08:49:45 +0000 (08:49 +0000)]
FIX: ext4_extent: checksumming against newly allocated block.
ngkaho1234 [Sun, 8 Nov 2015 10:18:23 +0000 (10:18 +0000)]
Add comments on the introduction of up-to-date flag
ngkaho1234 [Sun, 8 Nov 2015 07:24:42 +0000 (07:24 +0000)]
Use ext4_block_get_noread when read operation is not required
ngkaho1234 [Sat, 7 Nov 2015 17:35:15 +0000 (17:35 +0000)]
Reworks on buffer management
1. ext4_bcache: use flags arrayinstead of dirty boolean array.
2. ext4_blockdev: ext4_block_get_noread added.
ngkaho1234 [Thu, 5 Nov 2015 13:10:16 +0000 (13:10 +0000)]
FIX: item->in_inode is not initialized.
ngkaho1234 [Thu, 5 Nov 2015 10:14:29 +0000 (10:14 +0000)]
EA: trusted, security namespace added.
"system.richacl" added.
ngkaho1234 [Thu, 5 Nov 2015 09:41:01 +0000 (09:41 +0000)]
EA: ea entries with name "system.data" should be
preferentially stored in inode body.
gkostka [Thu, 5 Nov 2015 07:27:38 +0000 (08:27 +0100)]
Fix travis build
gkostka [Thu, 5 Nov 2015 07:12:58 +0000 (08:12 +0100)]
Add arm-none-eabi-gcc toolchain to travis build
ngkaho1234 [Sun, 1 Nov 2015 14:11:35 +0000 (14:11 +0000)]
ext4_fs_inode_checksum: fix checksum calculation
If inode size is not large enough to hold 32bit checksum,
then return lower 16bit.
ngkaho1234 [Sun, 1 Nov 2015 14:09:16 +0000 (14:09 +0000)]
ext4_generic_open2: add EXT4_FINCOM_FILETYPE check
When following the path, we should check whether
EXT4_FINCOM_FILETYPE is enabled.
gkostka [Sat, 31 Oct 2015 20:48:09 +0000 (21:48 +0100)]
Update README.md
gkostka [Thu, 29 Oct 2015 22:21:20 +0000 (23:21 +0100)]
Code format in dir_idx module