summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hjfs
diff options
context:
space:
mode:
authorspew <devnull@localhost>2017-03-25 13:49:13 -0500
committerspew <devnull@localhost>2017-03-25 13:49:13 -0500
commit5aa501870b9aa8095ae3bff7d39f55225a7b46b1 (patch)
tree099c4d4f4d55379fde2203738a92fa5a94e0b754 /sys/src/cmd/hjfs
parent85b8d253d496c115766a37f51ea72cbec78090a8 (diff)
hjfs: Add comment to change the OFF size to 8 when given the chance
Diffstat (limited to 'sys/src/cmd/hjfs')
-rw-r--r--sys/src/cmd/hjfs/dat.h7
-rw-r--r--sys/src/cmd/hjfs/fs1.c2
-rw-r--r--sys/src/cmd/hjfs/fs2.c1
3 files changed, 7 insertions, 3 deletions
diff --git a/sys/src/cmd/hjfs/dat.h b/sys/src/cmd/hjfs/dat.h
index f05229a29..bc336a7b2 100644
--- a/sys/src/cmd/hjfs/dat.h
+++ b/sys/src/cmd/hjfs/dat.h
@@ -79,6 +79,11 @@ struct Dentry {
enum {
DENTRYSIZ = NAMELEN + 4 * sizeof(ushort) + 13 + (3 + NDIRECT + NINDIRECT) * sizeof(uvlong),
DEPERBLK = RBLOCK / DENTRYSIZ,
+ /* Given any opportunity to make a breaking change to hjfs,
+ * make this 12 an 8. Indirect offsets to blocks used to
+ * hold an incrementing 4 byte generation number. That
+ * design has changed.
+ */
OFFPERBLK = RBLOCK / 12,
REFSIZ = 3,
REFPERBLK = RBLOCK / REFSIZ,
@@ -185,8 +190,8 @@ enum {
CHREAD = 1,
CHWRITE = 2,
CHRCLOSE = 4,
- CHFDUMP = 1,
+ CHFDUMP = 1,
CHFNOLOCK = 2,
CHFRO = 4,
CHFNOPERM = 8,
diff --git a/sys/src/cmd/hjfs/fs1.c b/sys/src/cmd/hjfs/fs1.c
index 5331d34f3..e01c84fb4 100644
--- a/sys/src/cmd/hjfs/fs1.c
+++ b/sys/src/cmd/hjfs/fs1.c
@@ -449,7 +449,7 @@ freeit:
if((l->flags & LGONE) != 0){
/*
* safe to unlock here, the file is gone and
- * we'r the last reference.
+ * we're the last reference.
*/
qunlock(&fs->loctree);
b = getbuf(fs->d, l->blk, TDENTRY, 0);
diff --git a/sys/src/cmd/hjfs/fs2.c b/sys/src/cmd/hjfs/fs2.c
index 4390404f1..8befb2426 100644
--- a/sys/src/cmd/hjfs/fs2.c
+++ b/sys/src/cmd/hjfs/fs2.c
@@ -100,7 +100,6 @@ namevalid(char *name)
return p - name < NAMELEN;
}
-
int
chancreat(Chan *ch, char *name, int perm, int mode)
{