lwext4.git
8 years agoext4_balloc: indentation, style and comment fixes
gkostka [Thu, 3 Dec 2015 19:54:32 +0000 (20:54 +0100)]
ext4_balloc: indentation, style and comment fixes

8 years agoAdd lock/unlock mountpoint to ext4_recover
gkostka [Thu, 3 Dec 2015 07:39:18 +0000 (08:39 +0100)]
Add lock/unlock mountpoint to ext4_recover

8 years agoSet std=gnu11 as default
gkostka [Wed, 2 Dec 2015 12:13:41 +0000 (13:13 +0100)]
Set std=gnu11 as default

8 years agoChange preprocessor macros to inline functions
gkostka [Wed, 2 Dec 2015 12:12:52 +0000 (13:12 +0100)]
Change preprocessor macros to inline functions

8 years agoext4_bcache & ext4_blockdev: unify buffer flushing code.
ngkaho1234 [Wed, 2 Dec 2015 11:36:23 +0000 (19:36 +0800)]
ext4_bcache & ext4_blockdev: unify buffer flushing code.

8 years agoReadme update
gkostka [Wed, 2 Dec 2015 07:54:27 +0000 (08:54 +0100)]
Readme update

8 years agoext4_journal: do simple verification on jbd superblock.
ngkaho1234 [Tue, 1 Dec 2015 16:31:24 +0000 (16:31 +0000)]
ext4_journal: do simple verification on jbd superblock.

8 years agoext4: introduce ext4_recover function
gkostka [Mon, 30 Nov 2015 08:38:20 +0000 (09:38 +0100)]
ext4: introduce ext4_recover function

8 years agoext4_journal: fix wrong parsing of revoke block.
ngkaho1234 [Sun, 29 Nov 2015 15:43:54 +0000 (15:43 +0000)]
ext4_journal: fix wrong parsing of revoke block.

8 years agoAdd license header to ext4_journal
gkostka [Sun, 29 Nov 2015 10:03:37 +0000 (11:03 +0100)]
Add license header to ext4_journal

8 years agoFix avrxmega7 build
gkostka [Sun, 29 Nov 2015 10:00:46 +0000 (11:00 +0100)]
Fix avrxmega7 build

8 years agoFix compile warnings
gkostka [Sun, 29 Nov 2015 09:58:52 +0000 (10:58 +0100)]
Fix compile warnings

8 years agoext4_journal: try to detect if any blocks are revoked in a transaction.
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.

8 years agoext4_journal: simplify the code logic of superblock replaying.
ngkaho1234 [Sun, 29 Nov 2015 02:44:49 +0000 (02:44 +0000)]
ext4_journal: simplify the code logic of superblock replaying.

8 years agoext4_journal: simple handling on superblock.
ngkaho1234 [Sat, 28 Nov 2015 20:38:33 +0000 (20:38 +0000)]
ext4_journal: simple handling on superblock.

8 years agoext4_journal: initial journal replay support part 2.
ngkaho1234 [Sat, 28 Nov 2015 20:27:54 +0000 (20:27 +0000)]
ext4_journal: initial journal replay support part 2.

8 years agoext4_journal: initial journal replay support.
ngkaho1234 [Sat, 28 Nov 2015 20:09:27 +0000 (04:09 +0800)]
ext4_journal: initial journal replay support.

8 years agoext4_journal: fix wrong parsing of revoke blocks list.
ngkaho1234 [Sat, 28 Nov 2015 19:30:26 +0000 (03:30 +0800)]
ext4_journal: fix wrong parsing of revoke blocks list.

8 years agoext4_journal: add building revoke tree.
ngkaho1234 [Sat, 28 Nov 2015 18:13:18 +0000 (18:13 +0000)]
ext4_journal: add building revoke tree.

8 years agoext4_journal: fix block_tag flag being wrongly parsed...
ngkaho1234 [Sat, 28 Nov 2015 16:39:32 +0000 (16:39 +0000)]
ext4_journal: fix block_tag flag being wrongly parsed...

8 years agoext4_journal: initial support of processing block_tags array.
ngkaho1234 [Sat, 28 Nov 2015 14:51:21 +0000 (14:51 +0000)]
ext4_journal: initial support of processing block_tags array.

8 years agoext4_journal: fix ext4_block not being freed.
ngkaho1234 [Thu, 26 Nov 2015 11:09:28 +0000 (11:09 +0000)]
ext4_journal: fix ext4_block not being freed.

8 years agoext4_journal.c: journal replay skeletal code.
ngkaho1234 [Thu, 26 Nov 2015 11:01:13 +0000 (11:01 +0000)]
ext4_journal.c: journal replay skeletal code.

8 years agoext4_bcache: clear BC_DIRTY flag when buffer will be dropped.
ngkaho1234 [Tue, 24 Nov 2015 15:09:23 +0000 (15:09 +0000)]
ext4_bcache: clear BC_DIRTY flag when buffer will be dropped.

8 years agoChange duplicated functions (to_le*/to_be*) to reorder*
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

8 years agoFix lru/lba compare functions: possible overflow
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.

8 years agoext4_bcache: remove free_delay member from ext4_bcache.
ngkaho1234 [Mon, 23 Nov 2015 15:07:01 +0000 (15:07 +0000)]
ext4_bcache: remove free_delay member from ext4_bcache.

8 years agoext4_bcache: add comments to the changes.
ngkaho1234 [Mon, 23 Nov 2015 14:28:09 +0000 (14:28 +0000)]
ext4_bcache: add comments to the changes.

8 years agoext4_bcache: fix return value of ext4_buf_lowest_lru (lba -> lru)
ngkaho1234 [Mon, 23 Nov 2015 13:39:29 +0000 (13:39 +0000)]
ext4_bcache: fix return value of ext4_buf_lowest_lru (lba -> lru)

8 years agoext4_bcache & ext4_blockdev: Buffer cache rework.
ngkaho1234 [Mon, 23 Nov 2015 13:26:56 +0000 (13:26 +0000)]
ext4_bcache & ext4_blockdev: Buffer cache rework.

8 years agoext4_journal: add journal helpers to ext4_journal.h
ngkaho1234 [Sat, 21 Nov 2015 05:31:57 +0000 (05:31 +0000)]
ext4_journal: add journal helpers to ext4_journal.h

8 years agoext4_journal: try to read jbd superblock when loading jbd.
ngkaho1234 [Fri, 20 Nov 2015 16:01:06 +0000 (16:01 +0000)]
ext4_journal: try to read jbd superblock when loading jbd.

8 years agoext4_journal: two changes below
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

8 years agoext4_journal: add block_get(_noread)/block_set.
ngkaho1234 [Sat, 14 Nov 2015 14:46:30 +0000 (22:46 +0800)]
ext4_journal: add block_get(_noread)/block_set.

8 years agoJournalling(JBD) support skeletal code.
ngkaho1234 [Fri, 13 Nov 2015 15:38:37 +0000 (23:38 +0800)]
Journalling(JBD) support skeletal code.

8 years agoRefactor some problematic (too long) dir entry data structures
gkostka [Sat, 21 Nov 2015 17:59:15 +0000 (18:59 +0100)]
Refactor some problematic (too long) dir entry data structures

8 years agoStyle & indentation improvements in ext4 part 3
gkostka [Sat, 21 Nov 2015 17:32:54 +0000 (18:32 +0100)]
Style & indentation improvements in ext4 part 3

8 years agoStyle & indentation improvements in ext4 part 2
gkostka [Sat, 21 Nov 2015 16:52:55 +0000 (17:52 +0100)]
Style & indentation improvements in ext4 part 2

8 years agoRefactoring: directrory entry prefix: EXT4_DIRENTRY* -> EXT4_DE*
gkostka [Sat, 21 Nov 2015 16:21:11 +0000 (17:21 +0100)]
Refactoring: directrory entry prefix: EXT4_DIRENTRY* -> EXT4_DE*

8 years agoStyle & indentation improvements in ext4
gkostka [Sat, 21 Nov 2015 16:14:44 +0000 (17:14 +0100)]
Style & indentation improvements in ext4

8 years agoStyle/indentation fix in ext4_dir
gkostka [Sat, 21 Nov 2015 15:28:29 +0000 (16:28 +0100)]
Style/indentation fix in ext4_dir

8 years agoRename 'initialize_dir_tail' to 'ext4_dir_init_entry_tail'
gkostka [Thu, 19 Nov 2015 22:30:03 +0000 (23:30 +0100)]
Rename 'initialize_dir_tail' to 'ext4_dir_init_entry_tail'

8 years agoAdd #ifdef __cplusplus to all header files
gkostka [Thu, 19 Nov 2015 22:27:44 +0000 (23:27 +0100)]
Add #ifdef __cplusplus to all header files

8 years agoStyle/indentation fix in ext4_ialloc
gkostka [Thu, 19 Nov 2015 22:11:45 +0000 (23:11 +0100)]
Style/indentation fix in ext4_ialloc

8 years agoFix style/indentaton in ext4_inode
gkostka [Thu, 19 Nov 2015 21:56:10 +0000 (22:56 +0100)]
Fix style/indentaton in ext4_inode

8 years agoRemove some obsolete comments
gkostka [Thu, 19 Nov 2015 21:45:16 +0000 (22:45 +0100)]
Remove some obsolete comments

8 years agoSet new default configuration (remove some unnecessary definitions)
gkostka [Thu, 19 Nov 2015 21:38:24 +0000 (22:38 +0100)]
Set new default configuration (remove some unnecessary definitions)

8 years agoFix compile warning
gkostka [Thu, 19 Nov 2015 20:54:14 +0000 (21:54 +0100)]
Fix compile warning

8 years agoStyle improve and code format in ext4_dir_idx module
gkostka [Thu, 19 Nov 2015 20:24:32 +0000 (21:24 +0100)]
Style improve and code format in ext4_dir_idx module

8 years agoChange assert in ext4_balloc to debug warning message
gkostka [Tue, 17 Nov 2015 23:46:25 +0000 (00:46 +0100)]
Change assert in ext4_balloc to debug warning message

8 years agoCode format in bcache & blockdev
gkostka [Tue, 17 Nov 2015 23:17:11 +0000 (00:17 +0100)]
Code format in bcache & blockdev

8 years agoCode format in ext4_balloc
gkostka [Tue, 17 Nov 2015 23:11:35 +0000 (00:11 +0100)]
Code format in ext4_balloc

8 years agoAdd to mkfs tool multiple features
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

8 years agoImprove bg init in mkfs
gkostka [Tue, 17 Nov 2015 21:16:20 +0000 (22:16 +0100)]
Improve bg init in mkfs

8 years agoAdd block size cli option to mkfs tool
gkostka [Tue, 17 Nov 2015 20:24:05 +0000 (21:24 +0100)]
Add block size cli option to mkfs tool

8 years agoMultiple style fixes in ext4_fs
gkostka [Tue, 17 Nov 2015 20:07:22 +0000 (21:07 +0100)]
Multiple style fixes in ext4_fs

8 years agoFix style and indentation in ext4_fs module
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

8 years agoAdd ext4_mkfs_read_info after mkfs & printf filesystem info
gkostka [Tue, 17 Nov 2015 14:48:55 +0000 (15:48 +0100)]
Add ext4_mkfs_read_info after mkfs & printf filesystem info

8 years agoIndroduce verbose mode to lwext4_mkfs tool
gkostka [Tue, 17 Nov 2015 14:39:28 +0000 (15:39 +0100)]
Indroduce verbose mode to lwext4_mkfs tool

8 years agoAdd extra debug information
gkostka [Tue, 17 Nov 2015 14:37:22 +0000 (15:37 +0100)]
Add extra debug information

8 years agoAdd to mkfs configurable descriptor size & hash seed init
gkostka [Tue, 17 Nov 2015 00:18:47 +0000 (01:18 +0100)]
Add to mkfs configurable descriptor size & hash seed init

8 years agoClear ext4_dir_idx_root in ext4_dir_dx_init
gkostka [Tue, 17 Nov 2015 00:16:41 +0000 (01:16 +0100)]
Clear ext4_dir_idx_root in ext4_dir_dx_init

8 years agoCode format
gkostka [Tue, 17 Nov 2015 00:15:36 +0000 (01:15 +0100)]
Code format

8 years agoMove search result intit to begin of ext4_dir_find_entry
gkostka [Mon, 16 Nov 2015 23:10:39 +0000 (00:10 +0100)]
Move search result intit to begin of ext4_dir_find_entry

8 years agoCreate root & lost+found directories as index inodes if possible
gkostka [Mon, 16 Nov 2015 22:22:19 +0000 (23:22 +0100)]
Create root & lost+found directories as index inodes if possible

8 years agoMkfs works for ext2/ext3 features
gkostka [Mon, 16 Nov 2015 22:04:45 +0000 (23:04 +0100)]
Mkfs works for ext2/ext3 features

8 years agoIntroduce init_bgs in mkfs module
gkostka [Mon, 16 Nov 2015 21:28:06 +0000 (22:28 +0100)]
Introduce init_bgs in mkfs module

8 years agoCreate default directory structure in mkfs
gkostka [Mon, 16 Nov 2015 20:28:08 +0000 (21:28 +0100)]
Create default directory structure in mkfs

8 years agoCode format
gkostka [Mon, 16 Nov 2015 19:39:15 +0000 (20:39 +0100)]
Code format

8 years agoSblock fill by using to_le32/to_le_16 macros & drop gdt_reserved blocks
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

8 years agoAdd ext4_sb_set_blocks_cnt
gkostka [Mon, 16 Nov 2015 19:28:02 +0000 (20:28 +0100)]
Add ext4_sb_set_blocks_cnt

8 years agoAdd mkfs_initial and default inodes alocation
gkostka [Sun, 15 Nov 2015 23:32:28 +0000 (00:32 +0100)]
Add mkfs_initial and default inodes alocation

8 years agoBlock group descriptors write in mkfs module
gkostka [Sun, 15 Nov 2015 22:11:34 +0000 (23:11 +0100)]
Block group descriptors write in mkfs module

8 years agoEnable debug in lwext4_mkfs tool
gkostka [Sun, 15 Nov 2015 22:01:21 +0000 (23:01 +0100)]
Enable debug in lwext4_mkfs tool

8 years agoSet cache dynamic as default in generic application
gkostka [Sun, 15 Nov 2015 21:59:57 +0000 (22:59 +0100)]
Set cache dynamic as default in generic application

8 years agoAdd some helper functions to ext4_block_group.h
gkostka [Sun, 15 Nov 2015 21:59:05 +0000 (22:59 +0100)]
Add some helper functions to ext4_block_group.h

8 years agoReturn success when 0 block read/write is called
gkostka [Sun, 15 Nov 2015 21:57:32 +0000 (22:57 +0100)]
Return success when 0 block read/write is called

8 years agoext4_mkfs: use EXT4_SUPERBLOCK_SIZE instead of sizeof op.
ngkaho1234 [Sun, 15 Nov 2015 09:24:41 +0000 (17:24 +0800)]
ext4_mkfs: use EXT4_SUPERBLOCK_SIZE instead of sizeof op.

8 years agoext4_mkfs is able to create image with sblock and basic features
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

8 years agoRemove obsolete feature flag
gkostka [Sat, 14 Nov 2015 11:17:25 +0000 (12:17 +0100)]
Remove obsolete feature flag

8 years agodefine _LARGEFILE64_SOURCE to be able to access large files.
ngkaho1234 [Sat, 14 Nov 2015 10:52:15 +0000 (10:52 +0000)]
define _LARGEFILE64_SOURCE to be able to access large files.

8 years agoext4_mkfs: fix SIGSEGV caused by inaccurate memory allocation size.
ngkaho1234 [Sat, 14 Nov 2015 10:55:45 +0000 (10:55 +0000)]
ext4_mkfs: fix SIGSEGV caused by inaccurate memory allocation size.

8 years agoAdd lwext4_mkfs tool skeleton
gkostka [Fri, 13 Nov 2015 22:35:51 +0000 (23:35 +0100)]
Add lwext4_mkfs tool skeleton

8 years agoMove all test modules to fs_test directory
gkostka [Fri, 13 Nov 2015 21:14:03 +0000 (22:14 +0100)]
Move all test modules to fs_test directory

8 years agoAdd block device skeleton module
gkostka [Fri, 13 Nov 2015 21:10:59 +0000 (22:10 +0100)]
Add block device skeleton module

8 years agoRemove obsolete chibios block devices
gkostka [Fri, 13 Nov 2015 21:09:07 +0000 (22:09 +0100)]
Remove obsolete chibios block devices

8 years agoReplace ext4_block_get with ext4_block_get_noread:
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

8 years agoFIX: ext4_extent: checksumming against newly allocated block.
ngkaho1234 [Mon, 9 Nov 2015 08:49:45 +0000 (08:49 +0000)]
FIX: ext4_extent: checksumming against newly allocated block.

8 years agoAdd comments on the introduction of up-to-date flag
ngkaho1234 [Sun, 8 Nov 2015 10:18:23 +0000 (10:18 +0000)]
Add comments on the introduction of up-to-date flag

8 years agoUse ext4_block_get_noread when read operation is not required
ngkaho1234 [Sun, 8 Nov 2015 07:24:42 +0000 (07:24 +0000)]
Use ext4_block_get_noread when read operation is not required

8 years agoReworks on buffer management
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.

8 years agoFIX: item->in_inode is not initialized.
ngkaho1234 [Thu, 5 Nov 2015 13:10:16 +0000 (13:10 +0000)]
FIX: item->in_inode is not initialized.

8 years agoEA: trusted, security namespace added.
ngkaho1234 [Thu, 5 Nov 2015 10:14:29 +0000 (10:14 +0000)]
EA: trusted, security namespace added.
    "system.richacl" added.

8 years agoEA: ea entries with name "system.data" should be
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.

8 years agoFix travis build
gkostka [Thu, 5 Nov 2015 07:27:38 +0000 (08:27 +0100)]
Fix travis build

8 years agoAdd arm-none-eabi-gcc toolchain to travis build
gkostka [Thu, 5 Nov 2015 07:12:58 +0000 (08:12 +0100)]
Add arm-none-eabi-gcc toolchain to travis build

8 years agoext4_fs_inode_checksum: fix checksum calculation
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.

8 years agoext4_generic_open2: add EXT4_FINCOM_FILETYPE check
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.

8 years agoUpdate README.md
gkostka [Sat, 31 Oct 2015 20:48:09 +0000 (21:48 +0100)]
Update README.md

8 years agoCode format in dir_idx module
gkostka [Thu, 29 Oct 2015 22:21:20 +0000 (23:21 +0100)]
Code format in dir_idx module