Don't serialize the absolute path so we can move checkpoints around.
sim/serialize.cc:
sim/serialize.hh:
export the checkpoint directory
--HG--
extra : convert_revision : ba5b796fd930ab0487a502beefcf76bd6bb7c366
This commit is contained in:
@@ -425,7 +425,7 @@ CowDiskImage::write(const uint8_t *data, off_t offset)
|
||||
void
|
||||
CowDiskImage::serialize(ostream &os)
|
||||
{
|
||||
string cowFilename = Checkpoint::dir() + name() + ".cow";
|
||||
string cowFilename = name() + ".cow";
|
||||
SERIALIZE_SCALAR(cowFilename);
|
||||
save(cowFilename);
|
||||
}
|
||||
@@ -435,6 +435,7 @@ CowDiskImage::unserialize(Checkpoint *cp, const string §ion)
|
||||
{
|
||||
string cowFilename;
|
||||
UNSERIALIZE_SCALAR(cowFilename);
|
||||
cowFilename = cp->cptDir + "/" + cowFilename;
|
||||
open(cowFilename);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user