Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ext2fs Missed another spot, in ext2fs_write.



details:   https://anonhg.NetBSD.org/src/rev/9cb30721852a
branches:  trunk
changeset: 336945:9cb30721852a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 28 03:49:41 2015 +0000

description:
Missed another spot, in ext2fs_write.

diffstat:

 sys/ufs/ext2fs/ext2fs_readwrite.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r c5c902078440 -r 9cb30721852a sys/ufs/ext2fs/ext2fs_readwrite.c
--- a/sys/ufs/ext2fs/ext2fs_readwrite.c Sat Mar 28 03:46:51 2015 +0000
+++ b/sys/ufs/ext2fs/ext2fs_readwrite.c Sat Mar 28 03:49:41 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_readwrite.c,v 1.68 2015/03/28 03:46:51 riastradh Exp $  */
+/*     $NetBSD: ext2fs_readwrite.c,v 1.69 2015/03/28 03:49:41 riastradh Exp $  */
 
 /*-
  * Copyright (c) 1993
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_readwrite.c,v 1.68 2015/03/28 03:46:51 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_readwrite.c,v 1.69 2015/03/28 03:49:41 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -284,12 +284,6 @@
                if ((ip->i_e2fs_flags & EXT2_APPEND) &&
                    uio->uio_offset != ext2fs_size(ip))
                        return (EPERM);
-               /* FALLTHROUGH */
-       case VLNK:
-               break;
-       case VDIR:
-               if ((ioflag & IO_SYNC) == 0)
-                       panic("%s: nonsync dir write", "ext2fs_write");
                break;
        default:
                panic("%s: type", "ext2fs_write");



Home | Main Index | Thread Index | Old Index