summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/32bit.h
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
commite5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch)
treed8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/cmd/cwfs/32bit.h
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/cmd/cwfs/32bit.h')
-rwxr-xr-xsys/src/cmd/cwfs/32bit.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/src/cmd/cwfs/32bit.h b/sys/src/cmd/cwfs/32bit.h
new file mode 100755
index 000000000..0a7c69c40
--- /dev/null
+++ b/sys/src/cmd/cwfs/32bit.h
@@ -0,0 +1,20 @@
+/*
+ * fundamental constants and types of the implementation
+ * changing any of these changes the layout on disk
+ */
+
+/*
+ * compatible on disk with the old 32-bit file server and can also speak 9P1.
+ * this lets people run this file server on their old file systems.
+ * DON'T TOUCH or you'll break compatibility.
+ */
+enum {
+ NAMELEN = 28, /* max size of file name components */
+ NDBLOCK = 6, /* number of direct blocks in Dentry */
+ NIBLOCK = 2, /* max depth of indirect blocks */
+};
+
+typedef long Off; /* file offsets & sizes, in bytes & blocks */
+
+#define COMPAT32
+#define swaboff swab4