HAMMER - Fix bug in 'hammer cleanup' when deleting snapshots
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Oct 2009 20:45:24 +0000 (13:45 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Oct 2009 20:45:24 +0000 (13:45 -0700)
commit068da2c2517b670c36ad3865c703fcb2fd9f2e6a
treee6389d78ca68aeb85905aa3471760f204eeac93d
parentb78f1a0033e49eaf6c65ff26a6998367a00875a6
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.
sbin/hammer/cmd_cleanup.c