summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2008-01-13 21:27:10 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2008-01-13 21:27:10 +0000
commitd31f7deef67f8c32893a17278052e371ff0ff09b (patch)
tree85e3e8cf06551e2ff9da4db5f75d1a5b4e2b65b8 /sys
parent35656ce800eccf8bd69ed20788cf1dc4f81b6261 (diff)
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@
Diffstat (limited to 'sys')
-rw-r--r--sys/msdosfs/msdosfs_denode.c6
1 files changed, 4 insertions, 2 deletions
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;