DragonFly commits List (threaded) for 2012-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: hammer2 hammer2 - Adjust chain lookup/iteration API, add readdir
commit e028fa747e9825425f74da7e9c57a50a82b48e82
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Sun Feb 12 16:50:01 2012 -0800
hammer2 - Adjust chain lookup/iteration API, add readdir
* Adjust the chain lookup/iteration API to take a key range key_beg to key_end
(inclusive), instead of a key/mask pair.
* Add and initialize a parent inode pointer in hammer2_inode{}.
* Adjust the directory key hash to always OR with 0x8000U in order to
guarantee that some low valued codes remain unused so we can use them
for pseudo directory cookies (for '.' and '..').
newfs2_hammer is required on the test volume with this change.
* Implement hammer2_vop_readdir().
Summary of changes:
sbin/newfs_hammer2/newfs_hammer2.c | 8 ++
sys/vfs/hammer2/hammer2.h | 9 ++-
sys/vfs/hammer2/hammer2_chain.c | 71 +++++++++++++------
sys/vfs/hammer2/hammer2_disk.h | 4 +-
sys/vfs/hammer2/hammer2_subr.c | 43 ++++++++++++
sys/vfs/hammer2/hammer2_vfsops.c | 6 +-
sys/vfs/hammer2/hammer2_vnops.c | 134 +++++++++++++++++++++++++++++++++++-
7 files changed, 243 insertions(+), 32 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e028fa747e9825425f74da7e9c57a50a82b48e82
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]