Make it so that we create a directory for each checkpoint so that

there aren't so many files littering your directory

dev/disk_image.cc:
    Checkpoints now in a directory
sim/serialize.hh:
    Make it so that we create a directory for each checkpoint so that
    there aren't so many files littering your directory.
    Remove unused variable

--HG--
extra : convert_revision : 261824eee62f7b68f6ae6e3dbd49ad5128ced148
This commit is contained in:
Nathan Binkert
2003-11-14 01:19:16 -05:00
parent 0bd909277d
commit 123d0294b5
3 changed files with 21 additions and 21 deletions

View File

@@ -405,7 +405,7 @@ CowDiskImage::write(const uint8_t *data, off_t offset)
void
CowDiskImage::serialize(ostream &os)
{
string cowFilename = CheckpointFile() + "." + name() + ".cow";
string cowFilename = CheckpointDir() + name() + ".cow";
SERIALIZE_SCALAR(cowFilename);
save(cowFilename);
}