From: Michael Vrable Date: Thu, 31 May 2007 05:47:10 +0000 (-0700) Subject: Do not bother to split indirect block lists into a separate segment. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=6e7d9688683887ba53ea2858771a13fdafd16edf;p=cumulus.git Do not bother to split indirect block lists into a separate segment. For now, just group them with the rest of the metadata. It's not worth splitting them up now; this could be reverted later. --- diff --git a/scandir.cc b/scandir.cc index aa7ce53..64a0dbf 100644 --- a/scandir.cc +++ b/scandir.cc @@ -68,7 +68,7 @@ void metadata_flush() /* Write current metadata information to a new object. */ LbsObject *meta = new LbsObject; - meta->set_group("root"); + meta->set_group("metadata"); meta->set_data(m.data(), m.size()); meta->write(tss); meta->checksum(); @@ -194,7 +194,7 @@ int64_t dumpfile(int fd, dictionary &file_info) } LbsObject *i = new LbsObject; - i->set_group("indirect"); + i->set_group("metadata"); i->set_data(blocklist.data(), blocklist.size()); i->write(tss); file_info["data"] = "@" + i->get_name(); @@ -479,7 +479,7 @@ int main(int argc, char *argv[]) const string md = metadata_root.str(); LbsObject *root = new LbsObject; - root->set_group("root"); + root->set_group("metadata"); root->set_data(md.data(), md.size()); root->write(tss); root->checksum();