From: Michael Vrable Date: Sat, 16 Jun 2007 02:31:51 +0000 (-0700) Subject: Rename descriptor files. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=f63dbe82a954433ee488c67495865f81fb4fcfa6;p=cumulus.git Rename descriptor files. Prefix them with "snapshot-", so they will sort after all segment files. --- 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";