libhammer - Preparation for snapshot handling & fixes
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 10 Feb 2015 14:32:15 +0000 (15:32 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 18 Feb 2015 15:13:23 +0000 (16:13 +0100)
commita77d0377998a726fa9c354b64ff4c0bf69f68b3e
tree55656cedac7e868d77a4c6828d2c9183483a0f38
parent59b728a7d19d91e26e18c2e77fe1db5f9886393f
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.
lib/libhammer/Makefile
lib/libhammer/compat.c [new file with mode: 0644]
lib/libhammer/info.c
lib/libhammer/libhammer.h
lib/libhammer/misc.c
lib/libhammer/snapshot.c [new file with mode: 0644]
sbin/hammer/cmd_info.c