hjfs: Add comment to change the OFF size to 8 when given the chance
This commit is contained in:
parent
85b8d253d4
commit
5aa501870b
|
@ -79,6 +79,11 @@ struct Dentry {
|
||||||
enum {
|
enum {
|
||||||
DENTRYSIZ = NAMELEN + 4 * sizeof(ushort) + 13 + (3 + NDIRECT + NINDIRECT) * sizeof(uvlong),
|
DENTRYSIZ = NAMELEN + 4 * sizeof(ushort) + 13 + (3 + NDIRECT + NINDIRECT) * sizeof(uvlong),
|
||||||
DEPERBLK = RBLOCK / DENTRYSIZ,
|
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,
|
OFFPERBLK = RBLOCK / 12,
|
||||||
REFSIZ = 3,
|
REFSIZ = 3,
|
||||||
REFPERBLK = RBLOCK / REFSIZ,
|
REFPERBLK = RBLOCK / REFSIZ,
|
||||||
|
@ -185,8 +190,8 @@ enum {
|
||||||
CHREAD = 1,
|
CHREAD = 1,
|
||||||
CHWRITE = 2,
|
CHWRITE = 2,
|
||||||
CHRCLOSE = 4,
|
CHRCLOSE = 4,
|
||||||
CHFDUMP = 1,
|
|
||||||
|
|
||||||
|
CHFDUMP = 1,
|
||||||
CHFNOLOCK = 2,
|
CHFNOLOCK = 2,
|
||||||
CHFRO = 4,
|
CHFRO = 4,
|
||||||
CHFNOPERM = 8,
|
CHFNOPERM = 8,
|
||||||
|
|
|
@ -449,7 +449,7 @@ freeit:
|
||||||
if((l->flags & LGONE) != 0){
|
if((l->flags & LGONE) != 0){
|
||||||
/*
|
/*
|
||||||
* safe to unlock here, the file is gone and
|
* safe to unlock here, the file is gone and
|
||||||
* we'r the last reference.
|
* we're the last reference.
|
||||||
*/
|
*/
|
||||||
qunlock(&fs->loctree);
|
qunlock(&fs->loctree);
|
||||||
b = getbuf(fs->d, l->blk, TDENTRY, 0);
|
b = getbuf(fs->d, l->blk, TDENTRY, 0);
|
||||||
|
|
|
@ -100,7 +100,6 @@ namevalid(char *name)
|
||||||
return p - name < NAMELEN;
|
return p - name < NAMELEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
chancreat(Chan *ch, char *name, int perm, int mode)
|
chancreat(Chan *ch, char *name, int perm, int mode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue