hammer2 - file truncate and extend
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 28 Feb 2012 09:58:05 +0000 (01:58 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 28 Feb 2012 09:58:05 +0000 (01:58 -0800)
commit3ac6a3194873d1bf4c6d951e2ffbb9ba54539a67
tree5aebb9f6accc60bf1faa9ace2d3f060b7c5b094f
parent37aa19df44159ee32dabba1c0650cea6f7a7eadc
hammer2 - file truncate and extend

* Implement file truncation and extension.  Remember that all partial block
  modifications (during truncation) have to roll a new block, so we use
  the chain_modify and related functions to handle it.

* Implement inode-embedded direct data (up to 512 bytes)

* Add support for the embedded feature in the chain_lookup/chain_next
  code and also fix a couple of bugs.

* Implement deletion flagging for chain structures (used for truncation and
  will eventually be used for unlink).

* Initial implementation of setattr (for truncation support).
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_inode.c
sys/vfs/hammer2/hammer2_vnops.c