git: hammer2 - Cleanup and bugfix pass to hammer2 setcomp paths
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Sep 23 16:56:43 PDT 2013
commit f481450ffccdbf50f8c9604067c25eb642a0c562
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Sep 23 15:18:35 2013 -0700
hammer2 - Cleanup and bugfix pass to hammer2 setcomp paths
* HAMMER2 will attempt to use LZ4 compression by default now.
* hammer2 setcomp now accepts text labels for the compression type and
accepts a compression level of 0 to set the default, which is simply
passed through to the VFS.
* Specify force and recursion flags in hammer2's main options rather than
after the setcomp command.
* Allow a list of paths to be specified rather than just one.
* The HAMMER2IOC_INODE_SET ioctl now only sets field elements which can
actually be modified by userland i.e. only the comp_algo field. It
used to set everything, including the indirect block table.
* Do not modify the hammer2_inode if the compression method is not being
changed.
* Change the zero-block testing logic a little, with related code cleanups.
Summary of changes:
sbin/hammer2/cmd_setcomp.c | 198 +++++++++++-----
sbin/hammer2/cmd_stat.c | 31 ++-
sbin/hammer2/hammer2.h | 8 +-
sbin/hammer2/main.c | 92 +++++---
sbin/newfs_hammer2/newfs_hammer2.c | 4 +-
sys/vfs/hammer2/hammer2_disk.h | 8 +-
sys/vfs/hammer2/hammer2_ioctl.c | 40 ++--
sys/vfs/hammer2/hammer2_vfsops.c | 451 +++++++++++++++++++------------------
8 files changed, 500 insertions(+), 332 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f481450ffccdbf50f8c9604067c25eb642a0c562
--
DragonFly BSD source repository
More information about the Commits
mailing list