DragonFly BSD
DragonFly commits List (threaded) for 2012-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: hammer2 hammer2 - file truncate and extend


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Feb 2012 02:01:15 -0800 (PST)

commit 3ac6a3194873d1bf4c6d951e2ffbb9ba54539a67
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Tue Feb 28 01:58:05 2012 -0800

    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).

Summary of changes:
 sys/vfs/hammer2/hammer2.h       |    2 +-
 sys/vfs/hammer2/hammer2_chain.c |   89 ++++++++++--
 sys/vfs/hammer2/hammer2_inode.c |   10 ++
 sys/vfs/hammer2/hammer2_vnops.c |  319 ++++++++++++++++++++++++++++++++++++---
 4 files changed, 390 insertions(+), 30 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3ac6a3194873d1bf4c6d951e2ffbb9ba54539a67


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]