Oops, I forgot to make the atime in the 64-bit IFILE 64 bits.

Correct that. Incompatible change, but no LFS64 volumes can have been
created yet.
This commit is contained in:
dholland 2015-09-21 01:24:39 +00:00
parent 947343ea0e
commit 7ac462185b
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs.h,v 1.191 2015/09/21 01:24:23 dholland Exp $ */
/* $NetBSD: lfs.h,v 1.192 2015/09/21 01:24:39 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 */
@ -588,11 +588,10 @@ typedef union finfo {
typedef struct ifile64 IFILE64;
struct ifile64 {
u_int32_t if_version; /* inode version number */
u_int32_t if_pad; /* 64-bit alignment padding */
u_int32_t if_atime_nsec; /* and nanoseconds */
u_int64_t if_atime_sec; /* Last access time, seconds */
int64_t if_daddr; /* inode disk address */
u_int64_t if_nextfree; /* next-unallocated inode */
u_int32_t if_atime_sec; /* Last access time, seconds */
u_int32_t if_atime_nsec; /* and nanoseconds */
};
typedef struct ifile32 IFILE32;

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_accessors.h,v 1.31 2015/09/21 01:24:23 dholland Exp $ */
/* $NetBSD: lfs_accessors.h,v 1.32 2015/09/21 01:24:39 dholland Exp $ */
/* from NetBSD: lfs.h,v 1.165 2015/07/24 06:59:32 dholland Exp */
/* from NetBSD: dinode.h,v 1.22 2013/01/22 09:39:18 dholland Exp */
@ -832,7 +832,7 @@ lfs_fi_setblock(STRUCT_LFS *fs, FINFO *fip, unsigned index, daddr_t blk)
LFS_DEF_IF_ACCESSOR(u_int32_t, u_int32_t, version);
LFS_DEF_IF_ACCESSOR(int64_t, int32_t, daddr);
LFS_DEF_IF_ACCESSOR(u_int64_t, u_int32_t, nextfree);
LFS_DEF_IF_ACCESSOR(u_int32_t, u_int32_t, atime_sec);
LFS_DEF_IF_ACCESSOR(u_int64_t, u_int32_t, atime_sec);
LFS_DEF_IF_ACCESSOR(u_int32_t, u_int32_t, atime_nsec);
/*