ref: 19639a03474204ac1477e319881bb826d464eccb
parent: 54411b5c642bfca7e03eff2ad7f4823f13f9e32a
author: 9ferno <[email protected]>
date: Wed Nov 2 11:05:22 EDT 2022
adding a better output of the Dentry from acid
--- /dev/null
+++ b/custom.acid
@@ -1,0 +1,46 @@
+include("mafs.acid");
+
+defn
+Qid9p1(addr) {
+ complex Qid9p1 addr;
+ print(" version ", addr.version\X, "\n");
+ print(" path ", addr.path\Z, "\n");
+};
+
+defn
+Dentry1(addr) {
+ complex Dentry1 addr;
+ local i;
+
+ i = 0;
+ print("Qid9p1 qid {\n");
+ Qid9p1(addr.qid);
+ print("}\n");
+ print(" size ", addr.size\Z, "\n");
+ print(" pdblkno ", addr.pdblkno\Z, "\n");
+ print(" pqpath ", addr.pqpath\Z, "\n");
+ print(" mtime ", addr.mtime\Z, "\n");
+ print(" mode ", addr.mode\O, "\n");
+ print(" uid ", addr.uid\d, "\n");
+ print(" gid ", addr.gid\d, "\n");
+ print(" muid ", addr.muid\d, "\n");
+ print(" dblocks ", addr.dblocks, "\n");
+ loop 1, Ndblock do {
+ print(i\d, ": ", addr.dblocks[i]\Z , "\n");
+ i = i+1;
+ }
+ print(" iblocks ", addr.iblocks, "\n");
+ loop 1, Niblock do {
+ print(i\d, ": ", addr.iblocks[i]\Z , "\n");
+ i = i+1;
+ }
+};
+
+defn
+Dentry(addr) {
+ complex Dentry addr;
+ print("Dentry1 {\n");
+ Dentry1(addr+0);
+ print("}\n");
+ print(" name ", *(addr.name\s), "\n");
+};