summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs
diff options
context:
space:
mode:
authorMartin Pelikan <pelikan@cvs.openbsd.org>2014-07-11 16:04:26 +0000
committerMartin Pelikan <pelikan@cvs.openbsd.org>2014-07-11 16:04:26 +0000
commit76609a6f5e18c60b1d84486ab8618ab36bce3474 (patch)
treeaf48e0a2b5f2c6319ce9cdb03bba31b9f8997c53 /sys/ufs/ext2fs
parent5a20f405f353b48380275914477659c7b2d2f871 (diff)
new dinode format for big-endian conversion routines
Diffstat (limited to 'sys/ufs/ext2fs')
-rw-r--r--sys/ufs/ext2fs/ext2fs_bswap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_bswap.c b/sys/ufs/ext2fs/ext2fs_bswap.c
index 62b09744bb6..d837a2ce52e 100644
--- a/sys/ufs/ext2fs/ext2fs_bswap.c
+++ b/sys/ufs/ext2fs/ext2fs_bswap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_bswap.c,v 1.4 2007/06/17 20:15:25 jasper Exp $ */
+/* $OpenBSD: ext2fs_bswap.c,v 1.5 2014/07/11 16:04:25 pelikan Exp $ */
/* $NetBSD: ext2fs_bswap.c,v 1.6 2000/07/24 00:23:10 mycroft Exp $ */
/*
@@ -117,8 +117,10 @@ e2fs_i_bswap(struct ext2fs_dinode *old, struct ext2fs_dinode *new)
new->e2di_flags = swap32(old->e2di_flags);
new->e2di_gen = swap32(old->e2di_gen);
new->e2di_facl = swap32(old->e2di_facl);
- new->e2di_dacl = swap32(old->e2di_dacl);
+ new->e2di_size_hi = swap32(old->e2di_size_hi);
new->e2di_faddr = swap32(old->e2di_faddr);
+ new->e2di_nblock_hi = swap16(old->e2di_nblock_hi);
+ new->e2di_facl_hi = swap16(old->e2di_facl_hi);
memcpy(&new->e2di_blocks[0], &old->e2di_blocks[0],
(NDADDR+NIADDR) * sizeof(int));
}