lwext4.git
8 years agoIntroduce ext4_fs_init_inode_data_block_index
gkostka [Fri, 16 Oct 2015 14:43:07 +0000 (16:43 +0200)]
Introduce ext4_fs_init_inode_data_block_index

8 years agoAdd CONFIG_EXTENT_FULL compilation flag
gkostka [Fri, 16 Oct 2015 14:40:40 +0000 (16:40 +0200)]
Add CONFIG_EXTENT_FULL compilation flag

This switch decides which extent implementation will
be chosen to compile.

8 years agoAdd PRId64 & PRIu64 macros when not defined int inttypes.h
gkostka [Fri, 16 Oct 2015 14:30:49 +0000 (16:30 +0200)]
Add PRId64 & PRIu64 macros when not defined int inttypes.h

8 years agoMove __unused macro from tree.h to ext4_config.h
gkostka [Fri, 16 Oct 2015 14:29:40 +0000 (16:29 +0200)]
Move __unused macro from tree.h to ext4_config.h

8 years agoIntroduce EXT4_BLOCK_ZERO macro to initialize ext4_block
gkostka [Fri, 16 Oct 2015 14:27:33 +0000 (16:27 +0200)]
Introduce EXT4_BLOCK_ZERO macro to initialize ext4_block

8 years agoIntroduce full extent implementation (by KaHo Ng)
gkostka [Fri, 16 Oct 2015 14:03:26 +0000 (16:03 +0200)]
Introduce full extent implementation (by KaHo Ng)

Old implementation doesn't handle unwritten extents properly.
This implementation is more heavy but access to unwritten extents
is safe. For microcontrollers users old implementation is ok since
partition isn't shared with system which writes unwritten extents
by falocate/ftruncate.

8 years ago1. Use cc/c++ instead of gcc/g++
ngkaho1234 [Sun, 11 Oct 2015 16:07:28 +0000 (00:07 +0800)]
1. Use cc/c++ instead of gcc/g++
2. Detect ENODATA definition.

8 years agoImprove debug formatting
gkostka [Sun, 11 Oct 2015 14:32:25 +0000 (16:32 +0200)]
Improve debug formatting

8 years agoIntroduce bdev_write_sb to mkfs module
gkostka [Sun, 11 Oct 2015 14:06:49 +0000 (16:06 +0200)]
Introduce bdev_write_sb to mkfs module

8 years agoAdd superblock fill function
gkostka [Sun, 11 Oct 2015 13:02:22 +0000 (15:02 +0200)]
Add superblock fill function

8 years agoPort create_fs_aux_info form ext4-utils
gkostka [Sun, 11 Oct 2015 12:11:48 +0000 (14:11 +0200)]
Port create_fs_aux_info form ext4-utils

8 years agoMake ext4_sb_sparse public
gkostka [Sun, 11 Oct 2015 12:11:20 +0000 (14:11 +0200)]
Make ext4_sb_sparse public

8 years agoAdd journal data to mkfs info
gkostka [Sun, 11 Oct 2015 11:39:14 +0000 (13:39 +0200)]
Add journal data to mkfs info

8 years agoAdd mkfs to debug module
gkostka [Sun, 11 Oct 2015 10:17:25 +0000 (12:17 +0200)]
Add mkfs to debug module

8 years agoAdd ext4_mkfs function (incomplete yet)
gkostka [Sun, 11 Oct 2015 09:50:35 +0000 (11:50 +0200)]
Add ext4_mkfs function (incomplete yet)

8 years agoAdd ext4_mkfs_read_info function
gkostka [Sun, 11 Oct 2015 08:57:21 +0000 (10:57 +0200)]
Add ext4_mkfs_read_info function

8 years agoAdd ext4_mkfs module skeleton
gkostka [Sun, 11 Oct 2015 08:48:31 +0000 (10:48 +0200)]
Add ext4_mkfs module skeleton

8 years agoTune CMakeFile default preprocessor macros on PC.
ngkaho1234 [Sun, 11 Oct 2015 08:48:19 +0000 (16:48 +0800)]
Tune CMakeFile default preprocessor macros on PC.
Remove ENOATTR, use ENODATA instead

8 years agoFix 16 bit MCU compilation warnings
gkostka [Sun, 11 Oct 2015 07:17:31 +0000 (09:17 +0200)]
Fix 16 bit MCU compilation warnings

8 years agoFIX: cannot delete files containing unwritten extent properly.
ngkaho1234 [Sun, 11 Oct 2015 07:06:23 +0000 (15:06 +0800)]
FIX: cannot delete files containing unwritten extent properly.
TODO: we also need to add the support of writting to a file containing unwritten extent.

8 years agoDebug system refactoring (prefixes & flags)
gkostka [Sat, 10 Oct 2015 18:56:55 +0000 (20:56 +0200)]
Debug system refactoring (prefixes & flags)

8 years agoMerge pull request #9 from ngkaho1234/master
gkostka [Sat, 10 Oct 2015 02:29:21 +0000 (04:29 +0200)]
Merge pull request #9 from ngkaho1234/master

FIX: numerous bugs.

8 years agoFIX: EA in-memory data referred after freeing.
root [Sat, 10 Oct 2015 02:01:00 +0000 (02:01 +0000)]
FIX: EA in-memory data referred after freeing.

8 years agoFIX: ea_size accounting is not correct after resizing. (3)
root [Fri, 9 Oct 2015 17:19:27 +0000 (17:19 +0000)]
FIX: ea_size accounting is not correct after resizing. (3)

8 years agoFIX: ea_size accounting is not correct after resizing. (2)
root [Fri, 9 Oct 2015 17:13:07 +0000 (17:13 +0000)]
FIX: ea_size accounting is not correct after resizing. (2)

8 years agoFIX: ea_size accounting is not correct after resizing.
root [Fri, 9 Oct 2015 17:09:43 +0000 (17:09 +0000)]
FIX: ea_size accounting is not correct after resizing.

8 years agoFix compiler warnings.
ngkaho1234 [Fri, 9 Oct 2015 16:54:22 +0000 (00:54 +0800)]
Fix compiler warnings.

8 years agoea_size accounting rework: now do not count the size of xattr headers.
ngkaho1234 [Fri, 9 Oct 2015 16:52:59 +0000 (00:52 +0800)]
ea_size accounting rework: now do not count the size of xattr headers.

8 years agoFIX: list buffer size is not correctly returned on ext4_listxattr calls.
ngkaho1234 [Fri, 9 Oct 2015 16:24:51 +0000 (00:24 +0800)]
FIX: list buffer size is not correctly returned on ext4_listxattr calls.

8 years agoFIX: ext4_listxattr not returning required list buffer size when size == 0.
ngkaho1234 [Fri, 9 Oct 2015 16:07:55 +0000 (00:07 +0800)]
FIX: ext4_listxattr not returning required list buffer size when size == 0.

8 years agoFix const correctness
gkostka [Fri, 9 Oct 2015 15:28:40 +0000 (17:28 +0200)]
Fix const correctness

8 years agoExperimental EA public routines.
root [Fri, 9 Oct 2015 13:22:40 +0000 (13:22 +0000)]
Experimental EA public routines.

8 years agoAdd ignore .git directory cmkage dist target
gkostka [Thu, 8 Oct 2015 18:04:02 +0000 (20:04 +0200)]
Add ignore .git directory cmkage dist target

8 years agoReadme update
gkostka [Thu, 8 Oct 2015 17:45:05 +0000 (19:45 +0200)]
Readme update

8 years agoFix chibios headers
gkostka [Thu, 8 Oct 2015 17:36:05 +0000 (19:36 +0200)]
Fix chibios headers

8 years agoRemove compilaton warnings
gkostka [Thu, 8 Oct 2015 17:22:37 +0000 (19:22 +0200)]
Remove compilaton warnings

8 years agoRemove some confusing casts
gkostka [Thu, 8 Oct 2015 17:17:53 +0000 (19:17 +0200)]
Remove some confusing casts

8 years agoLittle code cleanup
gkostka [Thu, 8 Oct 2015 17:11:48 +0000 (19:11 +0200)]
Little code cleanup

8 years agoFix compile warnings for 16 bit machines
gkostka [Thu, 8 Oct 2015 16:55:53 +0000 (18:55 +0200)]
Fix compile warnings for 16 bit machines

8 years agoAdd licence headers to source files
gkostka [Thu, 8 Oct 2015 16:52:21 +0000 (18:52 +0200)]
Add licence headers to source files

8 years agoCompile warnings fix
gkostka [Thu, 8 Oct 2015 16:50:45 +0000 (18:50 +0200)]
Compile warnings fix

8 years agoFix some indentation issues
gkostka [Thu, 8 Oct 2015 16:48:25 +0000 (18:48 +0200)]
Fix some indentation issues

8 years agoMove prefix table to .rodata section (and static keyword)
gkostka [Thu, 8 Oct 2015 16:43:14 +0000 (18:43 +0200)]
Move prefix table to .rodata section (and static keyword)

8 years agoRemove clock_t dependency
gkostka [Thu, 8 Oct 2015 16:38:01 +0000 (18:38 +0200)]
Remove clock_t dependency

8 years agoAdd CONFIG_HAVE_OWN_OFLAGS=1 for targets without right definitions
gkostka [Thu, 8 Oct 2015 16:37:01 +0000 (18:37 +0200)]
Add CONFIG_HAVE_OWN_OFLAGS=1 for targets without right definitions

8 years agoRemove cdefs header from tree
gkostka [Thu, 8 Oct 2015 16:33:32 +0000 (18:33 +0200)]
Remove cdefs header from tree

Not all toolchan has this header

8 years agoMerge pull request #8 from ngkaho1234/master
gkostka [Thu, 8 Oct 2015 16:21:11 +0000 (18:21 +0200)]
Merge pull request #8 from ngkaho1234/master

Experimental Extended Attribute supports.

8 years agoDo clang-format against ext4_xattr.c and ext4_xattr.h
root [Thu, 8 Oct 2015 16:11:39 +0000 (16:11 +0000)]
Do clang-format against ext4_xattr.c and ext4_xattr.h

8 years agoRemove ext4_fsetxattr stub.
root [Thu, 8 Oct 2015 16:06:21 +0000 (16:06 +0000)]
Remove ext4_fsetxattr stub.

8 years agoFix compiler warnings..ext4_fsetxattr stub added.
root [Thu, 8 Oct 2015 16:00:23 +0000 (16:00 +0000)]
Fix compiler warnings..ext4_fsetxattr stub added.

8 years agoext4 prefix/name string operations added.
root [Thu, 8 Oct 2015 15:55:30 +0000 (15:55 +0000)]
ext4 prefix/name string operations added.

8 years agoFIX: no entries found during iteration.
ngkaho1234 [Wed, 7 Oct 2015 15:47:43 +0000 (15:47 +0000)]
FIX: no entries found during iteration.

8 years agoEA entries iterating routines added.
root [Wed, 7 Oct 2015 12:04:56 +0000 (12:04 +0000)]
EA entries iterating routines added.

8 years agoCode refine (2):
root [Wed, 7 Oct 2015 09:30:38 +0000 (09:30 +0000)]
Code refine (2):
Make EA entry structure filling process becomes two function.

8 years agoCode refine (1):
root [Tue, 6 Oct 2015 14:50:31 +0000 (14:50 +0000)]
Code refine (1):
Make the acl block header filling in process a function, ext4_xattr_set_block_header()

8 years agoFIX: the ext4_block reference is freed before the EA data is put onto the acl block.
root [Tue, 6 Oct 2015 12:43:15 +0000 (12:43 +0000)]
FIX: the ext4_block reference is freed before the EA data is put onto the acl block.

8 years agoFix signed/unsigned cmp at ext4_xattr.c:245
root [Mon, 5 Oct 2015 22:56:08 +0000 (22:56 +0000)]
Fix signed/unsigned cmp at ext4_xattr.c:245

8 years agoLine 518 of ext4_xattr:
root [Mon, 5 Oct 2015 22:50:16 +0000 (22:50 +0000)]
Line 518 of ext4_xattr:
ret = ext4_block_get(xattr_ref->fs->bdev,
&xattr_ref->inode_ref->block,
xattr_block);

Should be &xattr_ref->block.

8 years agoFIX: in-inode EA entries not having their e_value_offs set correctly.
ngkaho1234 [Mon, 5 Oct 2015 16:16:09 +0000 (00:16 +0800)]
FIX: in-inode EA entries not having their e_value_offs set correctly.

8 years agoext4_fs_set_xattr, ext4_fs_get_xattr and ext4_fs_remove_xattr introduced.(EXPERIMENTA...
ngkaho1234 [Mon, 5 Oct 2015 16:02:35 +0000 (00:02 +0800)]
ext4_fs_set_xattr, ext4_fs_get_xattr and ext4_fs_remove_xattr introduced.(EXPERIMENTAL, POTENTIAL DEADLOCKgit add .

8 years agoNumorous helper routines implemented.
ngkaho1234 [Mon, 5 Oct 2015 11:06:38 +0000 (19:06 +0800)]
Numorous helper routines implemented.

8 years agoEA modification protocol implementations.(1)
ngkaho1234 [Sun, 4 Oct 2015 14:56:30 +0000 (22:56 +0800)]
EA modification protocol implementations.(1)

8 years agoext4_xattr_lookup_item added.
ngkaho1234 [Sun, 4 Oct 2015 14:32:29 +0000 (22:32 +0800)]
ext4_xattr_lookup_item added.

8 years agoAdd license header to ext4_xattr.c
ngkaho1234 [Sun, 4 Oct 2015 14:26:58 +0000 (22:26 +0800)]
Add license header to ext4_xattr.c

8 years agoDon't make those rb-tree symbols global.
ngkaho1234 [Sun, 4 Oct 2015 14:16:12 +0000 (22:16 +0800)]
Don't make those rb-tree symbols global.

8 years agoFIX: stale #include "ext4_rbtree.h"
ngkaho1234 [Sun, 4 Oct 2015 13:52:15 +0000 (21:52 +0800)]
FIX: stale #include "ext4_rbtree.h"

8 years ago1. Use rbtree implementation from Freebsd kernel instead of the one from Linux Kernel...
ngkaho1234 [Sun, 4 Oct 2015 13:39:03 +0000 (21:39 +0800)]
1. Use rbtree implementation from Freebsd kernel instead of the one from Linux Kernel.2. FIX: ext4_xattr_item_alloc_data: data_size == 1 when copying the on-disk data to memory.

8 years agoEA supports code rewritten with the view of providing EA modification
ngkaho1234 [Sun, 4 Oct 2015 10:49:04 +0000 (18:49 +0800)]
EA supports code rewritten with the view of providing EA modification
supports.

8 years agoExperimental EA supports.
ngkaho1234 [Sat, 3 Oct 2015 19:40:14 +0000 (03:40 +0800)]
Experimental EA supports.

8 years agoFix indentation level in ext4_fs
gkostka [Thu, 1 Oct 2015 17:11:21 +0000 (19:11 +0200)]
Fix indentation level in ext4_fs

8 years agoMerge branch 'master' of https://github.com/ngkaho1234/lwext4
gkostka [Thu, 1 Oct 2015 17:04:26 +0000 (19:04 +0200)]
Merge branch 'master' of https://github.com/ngkaho1234/lwext4

8 years agoext4_fs.c: code indentation.
ngkaho1234 [Thu, 1 Oct 2015 15:30:21 +0000 (23:30 +0800)]
ext4_fs.c: code indentation.

8 years agoCONFIG_HAVE_OWN_ASSERT defaults to 0.
ngkaho1234 [Thu, 1 Oct 2015 15:25:49 +0000 (23:25 +0800)]
CONFIG_HAVE_OWN_ASSERT defaults to 0.

8 years agoMerge branch 'master' of https://github.com/gkostka/lwext4
Grzegorz Kostka [Thu, 1 Oct 2015 14:26:42 +0000 (16:26 +0200)]
Merge branch 'master' of https://github.com/gkostka/lwext4

8 years agoFIX: block bitmap is not correctly initialized.
ngkaho1234 [Thu, 1 Oct 2015 11:10:57 +0000 (19:10 +0800)]
FIX: block bitmap is not correctly initialized.

8 years agoext4_mount_point_stats should handle the path of files as well.
root [Wed, 30 Sep 2015 09:48:58 +0000 (09:48 +0000)]
ext4_mount_point_stats should handle the path of files as well.

8 years ago#include <fcntl.h> is needed.
ngkaho1234 [Tue, 29 Sep 2015 15:43:00 +0000 (08:43 -0700)]
#include <fcntl.h> is needed.

8 years ago#ifdef CONFIG_HAVE_OWN_OFLAGS should be #if. Also, if CONFIG_HAVE_OWN_OFLAGS == 1...
me [Tue, 29 Sep 2015 15:37:57 +0000 (08:37 -0700)]
#ifdef CONFIG_HAVE_OWN_OFLAGS should be #if. Also, if CONFIG_HAVE_OWN_OFLAGS == 1, the definitions from ext4.h is used instead of the one provided by your OS.

8 years agoCONFIG_HAVE_OWN_OFLAGS introduced.(In case you want to use those unistd definitions...
root [Tue, 29 Sep 2015 12:56:47 +0000 (12:56 +0000)]
CONFIG_HAVE_OWN_OFLAGS introduced.(In case you want to use those unistd definitions from your OS.)
ext4_dir_entry_rewind introduced.

8 years agoMerge pull request #7 from ngkaho1234/master
gkostka [Mon, 28 Sep 2015 15:32:33 +0000 (17:32 +0200)]
Merge pull request #7 from ngkaho1234/master

FIX: ext4_frename does not check whether the target file exist or not.

8 years agoFIX: ext4_frename does not check whether the target file exist or not.
ngkaho1234 [Mon, 28 Sep 2015 10:23:26 +0000 (18:23 +0800)]
FIX: ext4_frename does not check whether the target file exist or not.

8 years agoMerge pull request #6 from ngkaho1234/master
gkostka [Sun, 27 Sep 2015 06:02:51 +0000 (08:02 +0200)]
Merge pull request #6 from ngkaho1234/master

FIX: an extra block is freed when truncating an inode.

8 years agoFIX: an extra block is freed when truncating an inode.
ngkaho1234 [Sun, 27 Sep 2015 05:09:11 +0000 (13:09 +0800)]
FIX: an extra block is freed when truncating an inode.

8 years agosince EXT4_DIRECTORY_FILETYPE_* are duplication of EXT4_DIRENTRY_*, the former is...
ngkaho1234 [Sat, 26 Sep 2015 18:12:57 +0000 (02:12 +0800)]
since EXT4_DIRECTORY_FILETYPE_* are duplication of EXT4_DIRENTRY_*, the former is replaced by the later.

8 years agoRemove compilation warning (maybe-uninitialized)
gkostka [Sat, 26 Sep 2015 15:53:24 +0000 (17:53 +0200)]
Remove compilation warning (maybe-uninitialized)

8 years agoMerge branch 'master' of https://github.com/ngkaho1234/lwext4
gkostka [Sat, 26 Sep 2015 15:49:21 +0000 (17:49 +0200)]
Merge branch 'master' of https://github.com/ngkaho1234/lwext4

8 years agonew option: CONFIG_HAVE_OWN_ASSERT
ngkaho1234 [Sat, 26 Sep 2015 04:59:44 +0000 (12:59 +0800)]
new option: CONFIG_HAVE_OWN_ASSERT

8 years agoFIX: double free of inode reference happens.
ngkaho1234 [Sat, 26 Sep 2015 04:43:55 +0000 (12:43 +0800)]
FIX: double free of inode reference happens.

8 years agoUse -dead_strip linker flag instead of --gc-sections on OS X.
me [Thu, 24 Sep 2015 16:37:31 +0000 (09:37 -0700)]
Use -dead_strip linker flag instead of --gc-sections on OS X.

8 years agoremove file_expect argument from those ext4_fopen2 calls.
root [Thu, 24 Sep 2015 12:03:57 +0000 (12:03 +0000)]
remove file_expect argument from those ext4_fopen2 calls.

8 years agoRegard to gkostka, EXT4_MP_LOCK/UNLOCK should be implemented as recursive mutex.
ngkaho1234 [Thu, 24 Sep 2015 01:26:54 +0000 (09:26 +0800)]
Regard to gkostka, EXT4_MP_LOCK/UNLOCK should be implemented as recursive mutex.
https://github.com/ngkaho1234/lwext4/commit/d68a48bfeb7f77b46c64aa9dab1f93448c3ad601

8 years agoext4_fopen_all removed.
root [Wed, 23 Sep 2015 12:21:35 +0000 (12:21 +0000)]
ext4_fopen_all removed.

8 years agoMerge pull request #5 from ngkaho1234/master
gkostka [Tue, 22 Sep 2015 05:36:56 +0000 (07:36 +0200)]
Merge pull request #5 from ngkaho1234/master

Initial Symbolic link support.(Creation, deletion, readlink, but no modification can be made.)

8 years agoSymlink now can be removed by ext4_fremove.
root [Mon, 21 Sep 2015 23:33:49 +0000 (23:33 +0000)]
Symlink now can be removed by ext4_fremove.

8 years agoMerge remote-tracking branch 'upstream/master'
root [Mon, 21 Sep 2015 22:47:59 +0000 (22:47 +0000)]
Merge remote-tracking branch 'upstream/master'

8 years agoTypo fix
gkostka [Mon, 21 Sep 2015 22:27:43 +0000 (00:27 +0200)]
Typo fix

8 years agoIncrease max test buffer size
gkostka [Mon, 21 Sep 2015 22:14:22 +0000 (00:14 +0200)]
Increase max test buffer size

8 years agoRemove stupid STM code
gkostka [Mon, 21 Sep 2015 22:13:45 +0000 (00:13 +0200)]
Remove stupid STM code

8 years agostm32f429 demo code format
gkostka [Mon, 21 Sep 2015 21:10:36 +0000 (23:10 +0200)]
stm32f429 demo code format

8 years agoFix iostats in generic demo
gkostka [Mon, 21 Sep 2015 21:08:02 +0000 (23:08 +0200)]
Fix iostats in generic demo