summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@rei2.9hal>2012-02-23 16:58:53 +0100
committercinap_lenrek <cinap_lenrek@rei2.9hal>2012-02-23 16:58:53 +0100
commitf2b6ec3140935d88d065359619c04992939a1ddc (patch)
tree18bfde25c2eef864258fdaab20ee66a16e278c84 /sys/src/cmd/cwfs
parente482b39f8d9ed8c27429cd2f510fc7c8a0dba1c1 (diff)
correcting unicode superscripts for 1 2 and 3
Diffstat (limited to 'sys/src/cmd/cwfs')
-rw-r--r--sys/src/cmd/cwfs/doc/changes6
-rw-r--r--sys/src/cmd/cwfs/main.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/src/cmd/cwfs/doc/changes b/sys/src/cmd/cwfs/doc/changes
index e1f8a02ac..cf9ea27ef 100644
--- a/sys/src/cmd/cwfs/doc/changes
+++ b/sys/src/cmd/cwfs/doc/changes
@@ -3,7 +3,7 @@
Geoff Collyer
July—October 2004
-note: 2⁶⁳=9,223,372,036,854,775,808 or 8EB (9.2×10ⁱ⁸)
+note: 2⁶³=9,223,372,036,854,775,808 or 8EB (9.2×10¹⁸)
• identified longs that refer to offsets, sizes and block numbers, and
changed them to type Off (vlong); fixed all print formats to match.
@@ -39,12 +39,12 @@ handle 64-bit offsets and sizes.
• booted xtc (terminal) from fs64 (used fs64 as main file system)
note: current file server with triple-indirect blocks at 4k block size
- has a maximum file size of ~505GB (5.42×10ⁱⁱ).
+ has a maximum file size of ~505GB (5.42×10¹¹).
with quadruple-indirect blocks, max would be ~275TB @ 4k block size.
• got igbe fs driver working (a couple small changes)
• eliminated some gotos (started with 580, down to 454)
-• added quadruple indirect blocks: lets us reach 2⁶⁳ with a 32kB block size
+• added quadruple indirect blocks: lets us reach 2⁶³ with a 32kB block size
• got igbe boot driver & pxe booting working
• on-disk qid paths are now Offs, but 9p1 qids on the wire are still ulongs
• generalised & parameterised indirect block implementation
diff --git a/sys/src/cmd/cwfs/main.c b/sys/src/cmd/cwfs/main.c
index 7f9b96a8d..a3c8d49f7 100644
--- a/sys/src/cmd/cwfs/main.c
+++ b/sys/src/cmd/cwfs/main.c
@@ -200,7 +200,7 @@ postservice(void)
}
/*
- * compute BUFSIZE*(NDBLOCK+INDPERBUF+INDPERBUF⁲+INDPERBUF⁳+INDPERBUF⁴)
+ * compute BUFSIZE*(NDBLOCK+INDPERBUF+INDPERBUF²+INDPERBUF³+INDPERBUF⁴)
* while watching for overflow; in that case, return 0.
*/
@@ -242,8 +242,8 @@ maxsize(void)
}
enum {
- INDPERBUF⁲ = ((uvlong)INDPERBUF *INDPERBUF),
- INDPERBUF⁴ = ((uvlong)INDPERBUF⁲*INDPERBUF⁲),
+ INDPERBUF² = ((uvlong)INDPERBUF*INDPERBUF),
+ INDPERBUF⁴ = ((uvlong)INDPERBUF²*INDPERBUF²),
};
static void
@@ -261,9 +261,9 @@ printsizes(void)
max = offlim - 1;
print("max file size = %,llud\n", (Wideoff)max);
}
- if (INDPERBUF⁲/INDPERBUF != INDPERBUF)
- print("overflow computing INDPERBUF⁲\n");
- if (INDPERBUF⁴/INDPERBUF⁲ != INDPERBUF⁲)
+ if (INDPERBUF²/INDPERBUF != INDPERBUF)
+ print("overflow computing INDPERBUF²\n");
+ if (INDPERBUF⁴/INDPERBUF² != INDPERBUF²)
print("overflow computing INDPERBUF⁴\n");
print("\tINDPERBUF = %d, INDPERBUF^4 = %,lld, ", INDPERBUF,
(Wideoff)INDPERBUF⁴);