HAMMER - Correct bug in last commit. hammer cleanup snapshot command.
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 14 Oct 2009 20:46:22 +0000 (13:46 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 14 Oct 2009 20:46:22 +0000 (13:46 -0700)
* hammer cleanup was generating a bad directive when trying to run the
  snapshot command.

sbin/hammer/cmd_cleanup.c

index 842f545..de830a7 100644 (file)
@@ -930,7 +930,7 @@ create_snapshot(int new_config, const char *path, const char *snapshots_path)
                /*
                 * New-style snapshot >= version 3.
                 */
-               runcmd(&r, "hammer snapfs %s cleanup", snapshots_path);
+               runcmd(&r, "hammer snap %s cleanup", snapshots_path);
        } else {
                /*
                 * Old-style snapshot prior to version 3