git: HAMMER - Fix bug in 'hammer cleanup' when deleting snapshots

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Oct 16 13:47:40 PDT 2009


commit 068da2c2517b670c36ad3865c703fcb2fd9f2e6a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 16 13:45:24 2009 -0700

    HAMMER - Fix bug in 'hammer cleanup' when deleting snapshots
    
    * When deleting more then 16 snapshots the dsnapshot.count field was not
      being properly cleared, resulting in later ioctls failing.
    
    * Adjust error and warning messages to provide the proper context.
    
    * Do not try to delete meta-data snapshots with a transaction id of 0, just
      in case a degenerate softlink is created.  The VFS will not allow it
      and the ioctl will fail.

Summary of changes:
 sbin/hammer/cmd_cleanup.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/068da2c2517b670c36ad3865c703fcb2fd9f2e6a


-- 
DragonFly BSD source repository





More information about the Commits mailing list