From 662838f83cc89aa766f15bc09ab868d7632378d0 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 3 Dec 2009 15:04:25 -0800 Subject: [PATCH 1/1] hammer utility - minor adjustment to snaprm * Allow the removal of snapshots with a transaction id of 0. Such snapshots are a degenerate case which can occur only during testing. --- sbin/hammer/cmd_snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/hammer/cmd_snapshot.c b/sbin/hammer/cmd_snapshot.c index 313e9156a4..42779eb4d7 100644 --- a/sbin/hammer/cmd_snapshot.c +++ b/sbin/hammer/cmd_snapshot.c @@ -214,7 +214,7 @@ hammer_cmd_snaprm(char **av, int ac) for (i = 0; i < ac; ++i) { if (lstat(av[i], &st) < 0) { tid = strtoull(av[i], &ptr, 16); - if (tid == 0 || *ptr) { + if (*ptr) { err(2, "hammer snaprm: not a file or tid: %s", av[i]); /* not reached */ -- 2.41.0