summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-07-18 22:44:34 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-07-18 22:44:34 +0000
commitd308cf0cfb71374cc32be752edc6517507181088 (patch)
tree9526172581904adce8fc05e77df27baa86aa80f3
parente2c7411094a299988cf790851abe9d180eb32252 (diff)
Swap inode's associated device number on big-endian architectures when
calling checkalias(), Daniel Junglas <dju@sysgo.com>, thanks.
-rw-r--r--sys/ufs/ext2fs/ext2fs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_subr.c b/sys/ufs/ext2fs/ext2fs_subr.c
index ec7f4f90c5d..0feda64e1c0 100644
--- a/sys/ufs/ext2fs/ext2fs_subr.c
+++ b/sys/ufs/ext2fs/ext2fs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_subr.c,v 1.13 2005/12/11 20:46:28 pedro Exp $ */
+/* $OpenBSD: ext2fs_subr.c,v 1.14 2006/07/18 22:44:33 pedro Exp $ */
/* $NetBSD: ext2fs_subr.c,v 1.1 1997/06/11 09:34:03 bouyer Exp $ */
/*
@@ -155,7 +155,7 @@ ext2fs_vinit(struct mount *mp, int (**specops)(void *),
case VBLK:
vp->v_op = specops;
- nvp = checkalias(vp, ip->i_e2din->e2di_rdev, mp);
+ nvp = checkalias(vp, fs2h32(ip->i_e2din->e2di_rdev), mp);
if (nvp != NULL) {
/*
* Discard unneeded vnode, but save its inode. Note