summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-12-11 21:06:11 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-12-11 21:06:11 +0000
commitbdbdd1c8cc21dca99b15a748a74b14759192348c (patch)
tree8ded42a95081759713a65fc7800b34fb75d69bb2 /sys/ufs
parent5d6043e6d902fe464bc94d1daee3a86dd3911c68 (diff)
Use e2fs_sbsave() instead of bcopy() when dumping the super-block back
to disk, fixes ext2fs on big-endian architectures
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 52a8e53b363..9a640d2cc05 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.42 2005/12/11 20:46:28 pedro Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.43 2005/12/11 21:06:10 pedro Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -1047,7 +1047,7 @@ ext2fs_sbupdate(mp, waitfor)
int error = 0;
bp = getblk(mp->um_devvp, SBLOCK, SBSIZE, 0, 0);
- bcopy((caddr_t)(&fs->e2fs), bp->b_data, SBSIZE);
+ e2fs_sbsave(&fs->e2fs, (struct ext2fs *) bp->b_data);
if (waitfor == MNT_WAIT)
error = bwrite(bp);
else