summaryrefslogtreecommitdiff
path: root/dev/disk_image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/disk_image.cc')
-rw-r--r--dev/disk_image.cc2
1 files changed, 1 insertions, 1 deletions
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);
}