Module Name: src
Committed By: dholland
Date: Wed Aug 12 18:27:18 UTC 2015
Modified Files:
src/sys/ufs/lfs: lfs.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 src/sys/ufs/lfs/lfs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ufs/lfs/lfs.h
diff -u src/sys/ufs/lfs/lfs.h:1.178 src/sys/ufs/lfs/lfs.h:1.179
--- src/sys/ufs/lfs/lfs.h:1.178 Wed Aug 12 18:27:01 2015
+++ src/sys/ufs/lfs/lfs.h Wed Aug 12 18:27:18 2015
@@ -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 */
};
/*