From f63dbe82a954433ee488c67495865f81fb4fcfa6 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Fri, 15 Jun 2007 19:31:51 -0700 Subject: [PATCH] Rename descriptor files. Prefix them with "snapshot-", so they will sort after all segment files. --- scandir.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scandir.cc b/scandir.cc index 0f4ba4e..27f2de4 100644 --- a/scandir.cc +++ b/scandir.cc @@ -493,7 +493,7 @@ int main(int argc, char *argv[]) * where to start to restore this snapshot. The filename is based on the * current time. */ strftime(desc_buf, sizeof(desc_buf), "%Y%m%dT%H%M%S", &time_buf); - string desc_filename = backup_dest + "/" + desc_buf + ".lbs"; + string desc_filename = backup_dest + "/snapshot-" + desc_buf + ".lbs"; std::ofstream descriptor(desc_filename.c_str()); descriptor << "Format: LBS Snapshot v0.1\n"; -- 2.20.1