Fix overwritting and ordering issues with serialization routines
authorRon Dreslinski <rdreslin@umich.edu>
Sun, 2 Nov 2003 04:00:40 +0000 (23:00 -0500)
committerRon Dreslinski <rdreslin@umich.edu>
Sun, 2 Nov 2003 04:00:40 +0000 (23:00 -0500)
dev/disk_image.cc:
    seperate serialization output files for different cow images

--HG--
extra : convert_revision : b62551f8e3f6315bb92ae3cb44e077d8084cbfe7

dev/disk_image.cc

index 2fead00ad14db1960c8f009778c28f05ec70e21c..747e76965ab17443754722b8f93a1ab6c099828e 100644 (file)
@@ -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);
 }