git: hammer2 hammer2 - initial mkdir skeleton
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Feb 12 19:26:56 PST 2012
commit 37494cab4ddf5a645d8fb50ef9c89bb78b797e34
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Feb 12 19:22:10 2012 -0800
hammer2 - initial mkdir skeleton
* Code up VOP_NMKDIR() to test the chain creation code and VOP_READDIR.
* Code up VOP_NLOOKUPDOTDOT.
* Adjust newfs_hammer2 to set alloc_tid to 16, so we can reserve some
inode numbers for the super-root and root.
* Add another field to the media inode_data for inode allocation within
a PFS.
Note: These are mostly skeletons. We don't flush modified chain elements
back to the disk yet and the chain create path can't create indirect
blocks yet.
Summary of changes:
sbin/newfs_hammer2/newfs_hammer2.c | 2 +-
sys/vfs/hammer2/hammer2.h | 7 ++
sys/vfs/hammer2/hammer2_chain.c | 12 +++-
sys/vfs/hammer2/hammer2_disk.h | 2 +-
sys/vfs/hammer2/hammer2_inode.c | 102 +++++++++++++++++++---------
sys/vfs/hammer2/hammer2_subr.c | 33 +++++++++-
sys/vfs/hammer2/hammer2_vnops.c | 127 ++++++++++++++++++++++++++++++++++-
7 files changed, 243 insertions(+), 42 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/37494cab4ddf5a645d8fb50ef9c89bb78b797e34
--
DragonFly BSD source repository
More information about the Commits
mailing list