Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Oops, I forgot to make the atime in the 64-bit I...
details: https://anonhg.NetBSD.org/src/rev/054cc4419380
branches: trunk
changeset: 340629:054cc4419380
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Sep 21 01:24:39 2015 +0000
description:
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.
diffstat:
sys/ufs/lfs/lfs.h | 7 +++----
sys/ufs/lfs/lfs_accessors.h | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 4fc81ff9278e -r 054cc4419380 sys/ufs/lfs/lfs.h
--- a/sys/ufs/lfs/lfs.h Mon Sep 21 01:24:23 2015 +0000
+++ b/sys/ufs/lfs/lfs.h Mon Sep 21 01:24:39 2015 +0000
@@ -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 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;
diff -r 4fc81ff9278e -r 054cc4419380 sys/ufs/lfs/lfs_accessors.h
--- a/sys/ufs/lfs/lfs_accessors.h Mon Sep 21 01:24:23 2015 +0000
+++ b/sys/ufs/lfs/lfs_accessors.h Mon Sep 21 01:24:39 2015 +0000
@@ -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_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);
/*
Home |
Main Index |
Thread Index |
Old Index