From d31f7deef67f8c32893a17278052e371ff0ff09b Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sun, 13 Jan 2008 21:27:10 +0000 Subject: Return pcbmap() errors from deget() rather than ignoring them. EIO at least has been seen from ian@'s new iPod, causing inappropriate mounting. ok miod@ --- sys/msdosfs/msdosfs_denode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/msdosfs/msdosfs_denode.c') diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c index 5a43b4ccec5..98fe26de870 100644 --- a/sys/msdosfs/msdosfs_denode.c +++ b/sys/msdosfs/msdosfs_denode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_denode.c,v 1.34 2007/10/06 02:18:38 krw Exp $ */ +/* $OpenBSD: msdosfs_denode.c,v 1.35 2008/01/13 21:27:09 krw Exp $ */ /* $NetBSD: msdosfs_denode.c,v 1.23 1997/10/17 11:23:58 ws Exp $ */ /*- @@ -322,8 +322,10 @@ retry: if (error == E2BIG) { ldep->de_FileSize = de_cn2off(pmp, size); error = 0; - } else + } else { printf("deget(): pcbmap returned %d\n", error); + return (error); + } } } else nvp->v_type = VREG; -- cgit v1.2.3