ngkaho1234
9e38c9b492
Remove stale static int ext4_ext_split_extent_at definition.
9 years ago
ngkaho1234
b373cd2f4d
TODO: More complicated truncate operation.
9 years ago
ngkaho1234
c6ecf74220
FIX: crash occurs when truncating a spare file.
9 years ago
gkostka
ab0173e089
Move allocation fail output condition to the end of the write loop
9 years ago
gkostka
0c4612983a
Fix fwrite function
If block allocation fail some data could be flushed
to file (when alocated blocks was ordered). Node size should
be updated after ext4_fs_append_inode_block fails.
9 years ago
ngkaho1234
35c79ba9d1
Do not set AGGRESSIVE_TEST on.
9 years ago
ngkaho1234
3fff8b448f
Numorous patches on extents.c :
1. Rewrite the code logic of ext4_ext_remove_space
2. FIX: failing to modify a multi-level b+tree
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
# modified: extents.c
#
9 years ago
ngkaho1234
86b19bc444
Add support_unwritten parameter to ext4_fs_get_inode_data_block_index.
9 years ago
ngkaho1234
698ceba63a
FIX: ext4_extent_remove_space deallocating the wrong block.
9 years ago
ngkaho1234
b768b83c4e
Simplify the code logic of ext4_fread & ext4_fwrite.
9 years ago
gkostka
26c9762100
Move stm32f429 demo to separate repository
9 years ago
gkostka
d5cb40f453
Improve generic & stm32f4 demos
1. test_lwext4_file_test parameter list change
2. Update generic demo help & readme (short & long parameters)
3. Update readme.mediawiki
9 years ago
gkostka
0e812379de
dos2unix conversion of Makefile
9 years ago
gkostka
5bf5ef05f8
Some minor cosmetic fixes
1. Move EXT_MAX_BLOCKS to ext4_types.h
2. Use EXT_MAX_BLOCKS instead of (ext4_lblk_t) (-1)
3. Change return value of ext4_ext_more_to_rm to bool
4. Move assignment ex = path[depth].extent outside if statement
9 years ago
ngkaho1234
6a8ef22973
FIX: ext4_fwrite cannot write to files correctly with filesize > 4.1G
9 years ago
ngkaho1234
f742164bc2
Remove EXT_INODE_HDR_NEED_GROW.
Instead, replace it with "bool *need_grow" parameter.
9 years ago
gkostka
75f7046dda
Remove define used only in one expresion
9 years ago
gkostka
1930bbbd7d
Improve casting in extent module
9 years ago
gkostka
fc604146e3
Fix indentation level
9 years ago
ngkaho1234
54c3f8cd84
ext4_ext_zero_unwritten_range: uint32_t -> ext4_fsblk_t
9 years ago
gkostka
90931b2bca
Fix compiler warning in extent module
9 years ago
ngkaho1234
39cfadf99c
Multiple fixes related to basic block type
1. uint32_t block address converted to ext4_fsblk_t block address
2. ext4_balloc_find_goal renamed to ext4_fs_indirect_find_goal
3. ext4_balloc_alloc_block now needs one more parameter(goal)
9 years ago
gkostka
2548f24361
Extent full & simple API unification
9 years ago
gkostka
cb2a68d7aa
Move helper functions from .c to .h.
Halper functions could be used in both extent implementations
9 years ago
gkostka
dfe85bdd95
Introduce ext4_fs_init_inode_data_block_index
9 years ago
gkostka
0d951d61e5
Add CONFIG_EXTENT_FULL compilation flag
This switch decides which extent implementation will
be chosen to compile.
9 years ago
gkostka
5819cc9f59
Add PRId64 & PRIu64 macros when not defined int inttypes.h
9 years ago
gkostka
f59c52eece
Move __unused macro from tree.h to ext4_config.h
9 years ago
gkostka
d15d9a8f91
Introduce EXT4_BLOCK_ZERO macro to initialize ext4_block
9 years ago
gkostka
1bbaf87720
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.
9 years ago
ngkaho1234
4bcfec78e6
1. Use cc/c++ instead of gcc/g++
2. Detect ENODATA definition.
9 years ago
gkostka
947c83bf03
Improve debug formatting
9 years ago
gkostka
a09a05013d
Introduce bdev_write_sb to mkfs module
9 years ago
gkostka
9befc593b0
Add superblock fill function
9 years ago
gkostka
b4f7056e34
Port create_fs_aux_info form ext4-utils
9 years ago
gkostka
193a315b1c
Make ext4_sb_sparse public
9 years ago
gkostka
23d805b5fa
Add journal data to mkfs info
9 years ago
gkostka
eef7be8080
Add mkfs to debug module
9 years ago
gkostka
5cfb1be847
Add ext4_mkfs function (incomplete yet)
9 years ago
gkostka
00c04858f2
Add ext4_mkfs_read_info function
9 years ago
gkostka
9d667e4f5f
Add ext4_mkfs module skeleton
9 years ago
ngkaho1234
bba14d471c
Tune CMakeFile default preprocessor macros on PC.
Remove ENOATTR, use ENODATA instead
9 years ago
gkostka
0d2e2caf71
Fix 16 bit MCU compilation warnings
9 years ago
ngkaho1234
d28be3a3f0
FIX: cannot delete files containing unwritten extent properly.
TODO: we also need to add the support of writting to a file containing unwritten extent.
9 years ago
gkostka
aff43c4a6a
Debug system refactoring (prefixes & flags)
9 years ago
gkostka
59950cfeb0
Merge pull request #9 from ngkaho1234/master
FIX: numerous bugs.
9 years ago
root
a4ec81fd03
FIX: EA in-memory data referred after freeing.
9 years ago
root
0b1f3afd3b
FIX: ea_size accounting is not correct after resizing. (3)
9 years ago
root
edcd44595b
FIX: ea_size accounting is not correct after resizing. (2)
9 years ago
root
d8bfd3ab2b
FIX: ea_size accounting is not correct after resizing.
9 years ago