mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 06:16:55 -04:00
Export metadata as "regular" (non-simple) JSON
This makes the output independent from changes to identifiers used in the thrift specification.
This commit is contained in:
parent
3d5023ba39
commit
ae9d521efc
@ -127,7 +127,7 @@ int dwarfsck(int argc, char** argv) {
|
||||
if (!export_metadata.empty()) {
|
||||
auto of = folly::File(export_metadata, O_RDWR | O_CREAT | O_TRUNC);
|
||||
filesystem_v2 fs(lgr, mm, fsopts);
|
||||
auto json = fs.serialize_metadata_as_json(true);
|
||||
auto json = fs.serialize_metadata_as_json(false);
|
||||
if (folly::writeFull(of.fd(), json.data(), json.size()) < 0) {
|
||||
LOG_ERROR << "failed to export metadata";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user