Make the inode number in the 64-bit dinode 64 bits wide, like the
other lfs64 on-disk inode numbers; I've been doing that since this is a new format and we may as well take the opportunity. This does assume that more than 4 billion files on a single volume becomes desirable; but for an average file size of 10K all that takes is a 40 TB volume, and it's not that hard to make one of those these days if you want to badly enough.
This commit is contained in:
parent
e54b457c15
commit
1c8e2a4061
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lfs.h,v 1.178 2015/08/12 18:27:01 dholland Exp $ */
|
||||
/* $NetBSD: lfs.h,v 1.179 2015/08/12 18:27:18 dholland Exp $ */
|
||||
|
||||
/* from NetBSD: dinode.h,v 1.22 2013/01/22 09:39:18 dholland Exp */
|
||||
/* from NetBSD: dir.h,v 1.21 2009/07/22 04:49:19 dholland Exp */
|
||||
@ -398,8 +398,8 @@ struct ulfs2_dinode {
|
||||
int64_t di_db[ULFS_NDADDR]; /* 112: Direct disk blocks. */
|
||||
int64_t di_ib[ULFS_NIADDR]; /* 208: Indirect disk blocks. */
|
||||
u_int64_t di_modrev; /* 232: i_modrev for NFSv4 */
|
||||
u_int32_t di_inumber; /* 240: Inode number */
|
||||
u_int32_t di_spare[3]; /* 244: Reserved; currently unused */
|
||||
u_int64_t di_inumber; /* 240: Inode number */
|
||||
u_int64_t di_spare[1]; /* 244: Reserved; currently unused */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user