From 095962c914448a5298d8dcba7758c3a0a1361734 Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Sat, 1 Nov 2003 23:00:40 -0500 Subject: [PATCH] Fix overwritting and ordering issues with serialization routines dev/disk_image.cc: seperate serialization output files for different cow images --HG-- extra : convert_revision : b62551f8e3f6315bb92ae3cb44e077d8084cbfe7 --- dev/disk_image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/disk_image.cc b/dev/disk_image.cc index 2fead00ad..747e76965 100644 --- a/dev/disk_image.cc +++ b/dev/disk_image.cc @@ -405,7 +405,7 @@ CowDiskImage::write(const uint8_t *data, off_t offset) void CowDiskImage::serialize(ostream &os) { - string cowFilename = serializeFilename + ".cow"; + string cowFilename = serializeFilename + "." + name() + ".cow"; SERIALIZE_SCALAR(cowFilename); save(cowFilename); }