From 1044b29a1df6a9ac7de95f418931fb1973bf7a77 Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Thu, 30 Oct 2003 16:48:23 -0500 Subject: Serialization support for cow images dev/disk_image.cc: dev/disk_image.hh: Serialization of cow images --HG-- extra : convert_revision : 144179b8cad00b32df8c448a8556a465e24737aa --- dev/disk_image.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dev/disk_image.hh') diff --git a/dev/disk_image.hh b/dev/disk_image.hh index 12048a042..7b2c12ef7 100644 --- a/dev/disk_image.hh +++ b/dev/disk_image.hh @@ -117,9 +117,12 @@ class CowDiskImage : public DiskImage ~CowDiskImage(); void init(int hash_size); - bool open(); + bool open(const std::string &file); void save(); + void save(const std::string &file); void writeback(); + void serialize(std::ostream &os); + void unserialize(Checkpoint *cp, const std::string §ion); virtual off_t size() const; -- cgit v1.2.3