code: mafs

ref: 9b76881a8e11c44aae5dfd447e1cd1bc074ec9f3
dir: /custom.acid/

View raw version
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");
};