ngkaho1234
eec3579554
ext4: bring the support of recursive removal of directory back.
9 years ago
ngkaho1234
dba02ea687
ext4_extent: some comments cleanup in ext4_ext_correct_indexes.
9 years ago
ngkaho1234
030a651923
Remove simple extent implementation.
9 years ago
ngkaho1234
b05eaa268d
Numorous changes. See below:
- ext4: ext4_trunc_inode now requires inode index instead of an
existing inode_ref.
- ext4: the support of removing directory recursively is temporarily
dropped.
- ext4: ext4_dir_rm temporarily relies on ext4_fs_truncate instead of
ext4_trunc_inode to ensure directory inode not having 0
length in case of power failure.
- ext4_journal: connect transactions having reference to the same blocks
together.
9 years ago
ngkaho1234
745c18c606
ext4_trans: flush the buffer in the following case.
When we are not running a transaction, but have enabled journalling,
we should flush the buffer when we free the corresponding block.
9 years ago
ngkaho1234
b84fde1edb
ext4_journal: fix mistreating an empty journal as a bad one.
9 years ago
gkostka
b96145cb6c
ext4_mkfs: fix mkfs function when journaling is enabled
9 years ago
gkostka
fad2d51c6c
ext4: introduce ext4_trunc_inode to deal with ftruncate operation
Truncate operations might consume a lot of blocks. New function
will split one big transacion into a numerous of smaller ones.
CONFIG_MAX_TRUNCATE_SIZE limits single inode truncate size.
9 years ago
ngkaho1234
b4f36a128a
ext4_journal: fix transaction sequence not being checksummed.
9 years ago
ngkaho1234
c261c575aa
ext4_journal: add JBD_FEATURE_COMPAT_CHECKSUM support.
9 years ago
ngkaho1234
ce2df9b216
ext4_journal: fix using wrong algorithm on journal checksum v2/v3.
9 years ago
ngkaho1234
d50817eb36
ext4: rework ext4_dir_rm to split it into many small transactions.
9 years ago
ngkaho1234
7e64817a1c
ext4_journal: initial support of journal checksumming is added.
9 years ago
ngkaho1234
fbfb8e6fba
ext4_bcache: add BC_TMP flag.
9 years ago
gkostka
dcbc722c72
ext4_bcache: add max cache depth watermark
9 years ago
gkostka
1105a27984
test_lwext4: add error printf when file/dir remove fails
9 years ago
ngkaho1234
d135e1151b
ext4_crc32: a number of changes to ext4_crc32c module.
- ext4_crc32c module is renamed to ext4_crc32
- changes on parameter names are made to ext4_crc32c routine prototype
- add crc32 as internal routine to implement ext4_crc32 and
ext4_crc32c
- add ext4_crc32 checksum routine
9 years ago
gkostka
2dc690937c
fs_test: add version string printf in test apps
9 years ago
gkostka
471bfe94f6
makefile: add version definitions to makefile & CMakeLists
9 years ago
gkostka
8dccafbc15
lwext4_server: improve opt list
9 years ago
gkostka
58a418061b
lwext4_generic: add verbose mode to generic application
9 years ago
gkostka
ba407e042e
fs_test: simplify open_filedev implementation
9 years ago
gkostka
45764c06a8
test_lwext4: add journaling to generic test module
9 years ago
gkostka
c0f2dfea72
lwext4_server: add journaling to filesystem test suite
9 years ago
ngkaho1234
c6448a3937
ext4_journal: refactor purging transactions code
Make the code of purging transactions from cp_queue clearer.
9 years ago
ngkaho1234
d7284d1556
ext4_journal: improve transaction handling
Keep track on transactions not being the first entry on cp_queue.
9 years ago
ngkaho1234
c5ea100757
ext4_journal: reimplement buffer list as buffer queue in jbd_trans.
With this modification, we can first remove non-dirty buffers from the
tail of of a buffer queue before iterating the entries on the buffer queue.
9 years ago
ngkaho1234
5cf3ed9bc1
ext4_journal: fix trans->data_cnt not be decremented
When buffer is not dirty this counter should be decremented.
9 years ago
gkostka
c2a546d91a
misc: change ext4_config header path in queue & tree modules
9 years ago
gkostka
69b1e68843
ext4: add doxygen doc for ext4_journal_start and ext4_journal_stop
9 years ago
gkostka
53e241d0e5
lwext4_server: fix travis build
9 years ago
gkostka
519e5676f7
ext4_trans: fix return value of ext4_trans_try_revoke_block
Function ext4_trans_try_revoke_block has been always return EOK,
even if jbd_trans_try_revoke_block fail.
9 years ago
gkostka
c9b6c30e64
ext4_filedev: fix travis build
9 years ago
ngkaho1234
0c7f3604a3
Introduce initial support of ext3/4 journalling.
To achieve this, a glue layer between block cache and lwext4 core routines
is added.
9 years ago
ngkaho1234
f3e06a2a6d
ext4: add static keyword to ext4_trans_start/stop/abort.
9 years ago
ngkaho1234
c8d7262124
ext4: fix ext4_trans_abort looking the same as ext4_trans_stop.
9 years ago
ngkaho1234
b14390e833
ext4: add two journalling related routines. See below:
- ext4_trans_get_write_access
- ext4_trans_set_block_dirty
9 years ago
ngkaho1234
c9e58fcc9e
ext4: do not start new transaction if there is one in use.
9 years ago
ngkaho1234
8c2fea16ee
ext4: add ext4_trans_start/stop/abort to high level public routines.
9 years ago
ngkaho1234
e7541250ed
ext4: move journalling start/stop code outside mount/umount.
9 years ago
ngkaho1234
c568b087e3
ext4: journalling <---> lwext4 main code junction skeleton code.
9 years ago
ngkaho1234
8f8a935ae1
Move tree.h and queue.h into misc/ directory.
9 years ago
gkostka
4ebcd09561
README: typo fix
9 years ago
ngkaho1234
3424e6d5c6
ext4_bcache: remove buffer from LRU tree when it will be dropped.
9 years ago
ngkaho1234
fbc87b38d6
ext4_bcache: remove buffer from dirty list when it is invalidated.
9 years ago
ngkaho1234
2357dfc97f
ext4_journal: fix block tag written always be the last tag.
9 years ago
ngkaho1234
fa3b47a25d
ext4_journal: fix jbd_trans_get_access flushing the wrong buffer.
9 years ago
ngkaho1234
9241e3c995
ext4: during journal test, use jbd_trans_try_revoke_block instead.
9 years ago
ngkaho1234
764793f1af
ext4_journal: a more efficient way to track journalled blocks.
Now we build a RB-Tree in jbd_journal session to track journalled
blocks instead of the one in jbd_trans.
9 years ago
ngkaho1234
03bd777408
Revert "ext4: make sure blocks are not contaminated with data in block cache."
This reverts commit 46c3c339d1
.
9 years ago