From 39b21f383b1b3289a0defa0a726c01d86838b2ad Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 10 Aug 2017 11:30:54 -0700 Subject: [PATCH] compensate for the new header when debugging the overlay Summary: I'm trying to troubleshoot why a new dir that I added isn't showing up in the overlay and I found that the debug tool doesn't know about the overlay. This is the dumbest minimal thing I could do to make this basically functional again Reviewed By: simpkins Differential Revision: D5602439 fbshipit-source-id: 4ae7fa34136697f9f915ccd95275cb3a7923ae4a --- eden/cli/debug.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eden/cli/debug.py b/eden/cli/debug.py index be933d5728..fcdd1c3be2 100644 --- a/eden/cli/debug.py +++ b/eden/cli/debug.py @@ -189,9 +189,11 @@ def _load_overlay_tree(overlay_dir: str, inode_number: int) -> OverlayDir: with open(overlay_file_path, 'rb') as f: data = f.read() + assert data[0:4] == b'OVDR' + tree_data = OverlayDir() protocol_factory = TCompactProtocol.TCompactProtocolFactory() - Serializer.deserialize(protocol_factory, data, tree_data) + Serializer.deserialize(protocol_factory, data[64:], tree_data) return tree_data