From e0af86f0ee6484d52cb4120fd426f16ea14657fc Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Thu, 10 Jul 2008 18:47:22 +0000 Subject: [PATCH] The symlink generated during "hammer snapshot" should be "/filesystem/@@0x.." and not "/filesystem@@0x...". --- sbin/hammer/cmd_snapshot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sbin/hammer/cmd_snapshot.c b/sbin/hammer/cmd_snapshot.c index 8b2aeba2a7..1fe38cc422 100644 --- a/sbin/hammer/cmd_snapshot.c +++ b/sbin/hammer/cmd_snapshot.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sbin/hammer/cmd_snapshot.c,v 1.6 2008/06/28 14:18:00 swildner Exp $ + * $DragonFly: src/sbin/hammer/cmd_snapshot.c,v 1.7 2008/07/10 18:47:22 mneumann Exp $ */ #include "hammer.h" @@ -118,6 +118,7 @@ hammer_cmd_snapshot(char **av, int ac) } filesystem = buf.f_mntonname; + /* restore '/' */ if (pos != NULL) *pos = '/'; } @@ -135,7 +136,7 @@ hammer_cmd_snapshot(char **av, int ac) err(2, "Synctid %s failed", filesystem); close(fd); - asprintf(&from, "%s@@0x%016llx", filesystem, synctid.tid); + asprintf(&from, "%s/@@0x%016llx", filesystem, synctid.tid); if (from == NULL) err(2, "Couldn't generate string"); -- 2.11.4.GIT