gkostka [Fri, 16 Oct 2015 14:43:07 +0000 (16:43 +0200)]
Introduce ext4_fs_init_inode_data_block_index
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.
gkostka [Fri, 16 Oct 2015 14:30:49 +0000 (16:30 +0200)]
Add PRId64 & PRIu64 macros when not defined int inttypes.h
gkostka [Fri, 16 Oct 2015 14:29:40 +0000 (16:29 +0200)]
Move __unused macro from tree.h to ext4_config.h
gkostka [Fri, 16 Oct 2015 14:27:33 +0000 (16:27 +0200)]
Introduce EXT4_BLOCK_ZERO macro to initialize ext4_block
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.
ngkaho1234 [Sun, 11 Oct 2015 16:07:28 +0000 (00:07 +0800)]
1. Use cc/c++ instead of gcc/g++
2. Detect ENODATA definition.
gkostka [Sun, 11 Oct 2015 14:32:25 +0000 (16:32 +0200)]
Improve debug formatting
gkostka [Sun, 11 Oct 2015 14:06:49 +0000 (16:06 +0200)]
Introduce bdev_write_sb to mkfs module
gkostka [Sun, 11 Oct 2015 13:02:22 +0000 (15:02 +0200)]
Add superblock fill function
gkostka [Sun, 11 Oct 2015 12:11:48 +0000 (14:11 +0200)]
Port create_fs_aux_info form ext4-utils
gkostka [Sun, 11 Oct 2015 12:11:20 +0000 (14:11 +0200)]
Make ext4_sb_sparse public
gkostka [Sun, 11 Oct 2015 11:39:14 +0000 (13:39 +0200)]
Add journal data to mkfs info
gkostka [Sun, 11 Oct 2015 10:17:25 +0000 (12:17 +0200)]
Add mkfs to debug module
gkostka [Sun, 11 Oct 2015 09:50:35 +0000 (11:50 +0200)]
Add ext4_mkfs function (incomplete yet)
gkostka [Sun, 11 Oct 2015 08:57:21 +0000 (10:57 +0200)]
Add ext4_mkfs_read_info function
gkostka [Sun, 11 Oct 2015 08:48:31 +0000 (10:48 +0200)]
Add ext4_mkfs module skeleton
ngkaho1234 [Sun, 11 Oct 2015 08:48:19 +0000 (16:48 +0800)]
Tune CMakeFile default preprocessor macros on PC.
Remove ENOATTR, use ENODATA instead
gkostka [Sun, 11 Oct 2015 07:17:31 +0000 (09:17 +0200)]
Fix 16 bit MCU compilation warnings
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.
gkostka [Sat, 10 Oct 2015 18:56:55 +0000 (20:56 +0200)]
Debug system refactoring (prefixes & flags)
gkostka [Sat, 10 Oct 2015 02:29:21 +0000 (04:29 +0200)]
Merge pull request #9 from ngkaho1234/master
FIX: numerous bugs.
root [Sat, 10 Oct 2015 02:01:00 +0000 (02:01 +0000)]
FIX: EA in-memory data referred after freeing.
root [Fri, 9 Oct 2015 17:19:27 +0000 (17:19 +0000)]
FIX: ea_size accounting is not correct after resizing. (3)
root [Fri, 9 Oct 2015 17:13:07 +0000 (17:13 +0000)]
FIX: ea_size accounting is not correct after resizing. (2)
root [Fri, 9 Oct 2015 17:09:43 +0000 (17:09 +0000)]
FIX: ea_size accounting is not correct after resizing.
ngkaho1234 [Fri, 9 Oct 2015 16:54:22 +0000 (00:54 +0800)]
Fix compiler warnings.
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.
ngkaho1234 [Fri, 9 Oct 2015 16:24:51 +0000 (00:24 +0800)]
FIX: list buffer size is not correctly returned on ext4_listxattr calls.
ngkaho1234 [Fri, 9 Oct 2015 16:07:55 +0000 (00:07 +0800)]
FIX: ext4_listxattr not returning required list buffer size when size == 0.
gkostka [Fri, 9 Oct 2015 15:28:40 +0000 (17:28 +0200)]
Fix const correctness
root [Fri, 9 Oct 2015 13:22:40 +0000 (13:22 +0000)]
Experimental EA public routines.
gkostka [Thu, 8 Oct 2015 18:04:02 +0000 (20:04 +0200)]
Add ignore .git directory cmkage dist target
gkostka [Thu, 8 Oct 2015 17:45:05 +0000 (19:45 +0200)]
Readme update
gkostka [Thu, 8 Oct 2015 17:36:05 +0000 (19:36 +0200)]
Fix chibios headers
gkostka [Thu, 8 Oct 2015 17:22:37 +0000 (19:22 +0200)]
Remove compilaton warnings
gkostka [Thu, 8 Oct 2015 17:17:53 +0000 (19:17 +0200)]
Remove some confusing casts
gkostka [Thu, 8 Oct 2015 17:11:48 +0000 (19:11 +0200)]
Little code cleanup
gkostka [Thu, 8 Oct 2015 16:55:53 +0000 (18:55 +0200)]
Fix compile warnings for 16 bit machines
gkostka [Thu, 8 Oct 2015 16:52:21 +0000 (18:52 +0200)]
Add licence headers to source files
gkostka [Thu, 8 Oct 2015 16:50:45 +0000 (18:50 +0200)]
Compile warnings fix
gkostka [Thu, 8 Oct 2015 16:48:25 +0000 (18:48 +0200)]
Fix some indentation issues
gkostka [Thu, 8 Oct 2015 16:43:14 +0000 (18:43 +0200)]
Move prefix table to .rodata section (and static keyword)
gkostka [Thu, 8 Oct 2015 16:38:01 +0000 (18:38 +0200)]
Remove clock_t dependency
gkostka [Thu, 8 Oct 2015 16:37:01 +0000 (18:37 +0200)]
Add CONFIG_HAVE_OWN_OFLAGS=1 for targets without right definitions
gkostka [Thu, 8 Oct 2015 16:33:32 +0000 (18:33 +0200)]
Remove cdefs header from tree
Not all toolchan has this header
gkostka [Thu, 8 Oct 2015 16:21:11 +0000 (18:21 +0200)]
Merge pull request #8 from ngkaho1234/master
Experimental Extended Attribute supports.
root [Thu, 8 Oct 2015 16:11:39 +0000 (16:11 +0000)]
Do clang-format against ext4_xattr.c and ext4_xattr.h
root [Thu, 8 Oct 2015 16:06:21 +0000 (16:06 +0000)]
Remove ext4_fsetxattr stub.
root [Thu, 8 Oct 2015 16:00:23 +0000 (16:00 +0000)]
Fix compiler warnings..ext4_fsetxattr stub added.
root [Thu, 8 Oct 2015 15:55:30 +0000 (15:55 +0000)]
ext4 prefix/name string operations added.
ngkaho1234 [Wed, 7 Oct 2015 15:47:43 +0000 (15:47 +0000)]
FIX: no entries found during iteration.
root [Wed, 7 Oct 2015 12:04:56 +0000 (12:04 +0000)]
EA entries iterating routines added.
root [Wed, 7 Oct 2015 09:30:38 +0000 (09:30 +0000)]
Code refine (2):
Make EA entry structure filling process becomes two function.
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()
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.
root [Mon, 5 Oct 2015 22:56:08 +0000 (22:56 +0000)]
Fix signed/unsigned cmp at ext4_xattr.c:245
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.
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.
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 .
ngkaho1234 [Mon, 5 Oct 2015 11:06:38 +0000 (19:06 +0800)]
Numorous helper routines implemented.
ngkaho1234 [Sun, 4 Oct 2015 14:56:30 +0000 (22:56 +0800)]
EA modification protocol implementations.(1)
ngkaho1234 [Sun, 4 Oct 2015 14:32:29 +0000 (22:32 +0800)]
ext4_xattr_lookup_item added.
ngkaho1234 [Sun, 4 Oct 2015 14:26:58 +0000 (22:26 +0800)]
Add license header to ext4_xattr.c
ngkaho1234 [Sun, 4 Oct 2015 14:16:12 +0000 (22:16 +0800)]
Don't make those rb-tree symbols global.
ngkaho1234 [Sun, 4 Oct 2015 13:52:15 +0000 (21:52 +0800)]
FIX: stale #include "ext4_rbtree.h"
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.
ngkaho1234 [Sun, 4 Oct 2015 10:49:04 +0000 (18:49 +0800)]
EA supports code rewritten with the view of providing EA modification
supports.
ngkaho1234 [Sat, 3 Oct 2015 19:40:14 +0000 (03:40 +0800)]
Experimental EA supports.
gkostka [Thu, 1 Oct 2015 17:11:21 +0000 (19:11 +0200)]
Fix indentation level in ext4_fs
gkostka [Thu, 1 Oct 2015 17:04:26 +0000 (19:04 +0200)]
Merge branch 'master' of https://github.com/ngkaho1234/lwext4
ngkaho1234 [Thu, 1 Oct 2015 15:30:21 +0000 (23:30 +0800)]
ext4_fs.c: code indentation.
ngkaho1234 [Thu, 1 Oct 2015 15:25:49 +0000 (23:25 +0800)]
CONFIG_HAVE_OWN_ASSERT defaults to 0.
Grzegorz Kostka [Thu, 1 Oct 2015 14:26:42 +0000 (16:26 +0200)]
Merge branch 'master' of https://github.com/gkostka/lwext4
ngkaho1234 [Thu, 1 Oct 2015 11:10:57 +0000 (19:10 +0800)]
FIX: block bitmap is not correctly initialized.
root [Wed, 30 Sep 2015 09:48:58 +0000 (09:48 +0000)]
ext4_mount_point_stats should handle the path of files as well.
ngkaho1234 [Tue, 29 Sep 2015 15:43:00 +0000 (08:43 -0700)]
#include <fcntl.h> is needed.
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.
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.
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.
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.
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.
ngkaho1234 [Sun, 27 Sep 2015 05:09:11 +0000 (13:09 +0800)]
FIX: an extra block is freed when truncating an inode.
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.
gkostka [Sat, 26 Sep 2015 15:53:24 +0000 (17:53 +0200)]
Remove compilation warning (maybe-uninitialized)
gkostka [Sat, 26 Sep 2015 15:49:21 +0000 (17:49 +0200)]
Merge branch 'master' of https://github.com/ngkaho1234/lwext4
ngkaho1234 [Sat, 26 Sep 2015 04:59:44 +0000 (12:59 +0800)]
new option: CONFIG_HAVE_OWN_ASSERT
ngkaho1234 [Sat, 26 Sep 2015 04:43:55 +0000 (12:43 +0800)]
FIX: double free of inode reference happens.
me [Thu, 24 Sep 2015 16:37:31 +0000 (09:37 -0700)]
Use -dead_strip linker flag instead of --gc-sections on OS X.
root [Thu, 24 Sep 2015 12:03:57 +0000 (12:03 +0000)]
remove file_expect argument from those ext4_fopen2 calls.
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
root [Wed, 23 Sep 2015 12:21:35 +0000 (12:21 +0000)]
ext4_fopen_all removed.
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.)
root [Mon, 21 Sep 2015 23:33:49 +0000 (23:33 +0000)]
Symlink now can be removed by ext4_fremove.
root [Mon, 21 Sep 2015 22:47:59 +0000 (22:47 +0000)]
Merge remote-tracking branch 'upstream/master'
gkostka [Mon, 21 Sep 2015 22:27:43 +0000 (00:27 +0200)]
Typo fix
gkostka [Mon, 21 Sep 2015 22:14:22 +0000 (00:14 +0200)]
Increase max test buffer size
gkostka [Mon, 21 Sep 2015 22:13:45 +0000 (00:13 +0200)]
Remove stupid STM code
gkostka [Mon, 21 Sep 2015 21:10:36 +0000 (23:10 +0200)]
stm32f429 demo code format
gkostka [Mon, 21 Sep 2015 21:08:02 +0000 (23:08 +0200)]
Fix iostats in generic demo