Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs Make the inode number in the 64-bit dinode 64 bi...



details:   https://anonhg.NetBSD.org/src/rev/6d32fb64281d
branches:  trunk
changeset: 339830:6d32fb64281d
user:      dholland <dholland%NetBSD.org@localhost>
date:      Wed Aug 12 18:27:18 2015 +0000

description:
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.

diffstat:

 sys/ufs/lfs/lfs.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r f67a078cbc4c -r 6d32fb64281d sys/ufs/lfs/lfs.h
--- a/sys/ufs/lfs/lfs.h Wed Aug 12 18:27:01 2015 +0000
+++ b/sys/ufs/lfs/lfs.h Wed Aug 12 18:27:18 2015 +0000
@@ -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 @@
        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 */
 };
 
 /*



Home | Main Index | Thread Index | Old Index