git: libhammer - Preparation for snapshot handling & fixes

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Wed Feb 18 07:32:08 PST 2015


commit a77d0377998a726fa9c354b64ff4c0bf69f68b3e
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Tue Feb 10 15:32:15 2015 +0100

    libhammer - Preparation for snapshot handling & fixes
    
    Trivial changes:
    	- Function renaming to actually match what they are
    	  describing.
    	- Clearer variable naming.
    
    Additions:
    	- Structures to hold snapshot data.
    	- Functions to retrieve snapshots from metadata for PFSes.
    	- A file for version compatibility functions.
    	- A function to return the canonical access path of a
    	  PFS which is suitable for opening.
    	- Wrappers to operate per PFS snapshot list.
    
    Changes & fixes:
    	- Use the new functions to gather all snaps of a PFS.
    	- Adapt hammer program for the changes.
    	- Check before free'ing in libhammer_free_fsinfo()
    	- Display the number of snapshots for unmounted PFSes.
    
    Still missing:
    	- Manpages changes.

Summary of changes:
 lib/libhammer/Makefile                             |   2 +-
 .../globaldata.c => lib/libhammer/compat.c         |  94 ++++++------
 lib/libhammer/info.c                               | 161 +++++++--------------
 lib/libhammer/libhammer.h                          |  62 ++++++--
 lib/libhammer/misc.c                               |  33 +++++
 lib/libhammer/snapshot.c                           | 119 +++++++++++++++
 sbin/hammer/cmd_info.c                             |  44 +++---
 7 files changed, 325 insertions(+), 190 deletions(-)
 copy sys/platform/vkernel64/platform/globaldata.c => lib/libhammer/compat.c (56%)
 create mode 100644 lib/libhammer/snapshot.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a77d0377998a726fa9c354b64ff4c0bf69f68b3e


-- 
DragonFly BSD source repository



More information about the Commits mailing list