summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2015-09-01 06:10:16 +0000
committerdholland <dholland@NetBSD.org>2015-09-01 06:10:16 +0000
commit2b4fdfc676a9a37e3702fee573e8b41d9591f229 (patch)
tree950f2754629870bba34b37ef0635d62375a797a9 /libexec
parent11e6699a145bd9187da38ab20cd2b3f92177e544 (diff)
Add byteswapping to the dinode accessors.
This prevents regressions in the ulfs code when switching to the new accessors. Note that while adding byteswapping to the other accessors is straightforward, I haven't done it yet; and that also is not enough to make LFS_EI work, because there are places lying around that bypass the accessors for one reason and another and all of them need to be updated. That is going to have to wait for a later day as LFS_EI is not on the critical path right now.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/lfs_cleanerd/cleaner.h3
-rw-r--r--libexec/lfs_cleanerd/lfs_cleanerd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/libexec/lfs_cleanerd/cleaner.h b/libexec/lfs_cleanerd/cleaner.h
index f5a0489b496..b10a52aa2b7 100644
--- a/libexec/lfs_cleanerd/cleaner.h
+++ b/libexec/lfs_cleanerd/cleaner.h
@@ -20,7 +20,8 @@ struct clfs {
struct dlfs u_32;
struct dlfs64 u_64;
} lfs_dlfs_u;
- unsigned lfs_is64 : 1;
+ unsigned lfs_is64 : 1,
+ lfs_dobyteswap : 1;
/* Ifile */
int clfs_ifilefd; /* Ifile file descriptor */
diff --git a/libexec/lfs_cleanerd/lfs_cleanerd.c b/libexec/lfs_cleanerd/lfs_cleanerd.c
index bb861f4da4b..f39c0e442d0 100644
--- a/libexec/lfs_cleanerd/lfs_cleanerd.c
+++ b/libexec/lfs_cleanerd/lfs_cleanerd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_cleanerd.c,v 1.50 2015/08/12 18:28:00 dholland Exp $ */
+/* $NetBSD: lfs_cleanerd.c,v 1.51 2015/09/01 06:10:16 dholland Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -269,6 +269,7 @@ init_fs(struct clfs *fs, char *fsname)
return -1;
}
fs->lfs_is64 = 0; /* XXX notyet */
+ fs->lfs_dobyteswap = 0; /* XXX notyet */
/* If this is not a version 2 filesystem, complain and exit */
if (lfs_sb_getversion(fs) != 2) {