Add size field to walk command

This commit is contained in:
2017-09-09 23:41:43 -05:00
parent 0689506c47
commit 8b436d97b4
+5 -1
View File
@@ -343,7 +343,11 @@ int walk(int argc, char **args) {
auto fs = createFileSystem(fsBuff, fsSize);
if (fs) {
fs->walk([](const char *type, uint64_t start, uint64_t end) {
cout << type << ", start: " << start << ", end: " << end << endl;
cout << type;
cout << "\tstart: " << start;
cout << "\tend: " << end;
cout << "\tsize: " << (end - start);
cout << endl;
return 0;
});
delete fs;