Module Name: src Committed By: hannken Date: Tue Dec 24 09:56:18 UTC 2013
Modified Files: src/sys/fs/sysvbfs: sysvbfs_vnops.c Log Message: It is not the task of sysvbfs_open() to check for unlinked nodes. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/fs/sysvbfs/sysvbfs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/sysvbfs/sysvbfs_vnops.c diff -u src/sys/fs/sysvbfs/sysvbfs_vnops.c:1.48 src/sys/fs/sysvbfs/sysvbfs_vnops.c:1.49 --- src/sys/fs/sysvbfs/sysvbfs_vnops.c:1.48 Wed May 15 16:44:03 2013 +++ src/sys/fs/sysvbfs/sysvbfs_vnops.c Tue Dec 24 09:56:18 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: sysvbfs_vnops.c,v 1.48 2013/05/15 16:44:03 pooka Exp $ */ +/* $NetBSD: sysvbfs_vnops.c,v 1.49 2013/12/24 09:56:18 hannken Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.48 2013/05/15 16:44:03 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.49 2013/12/24 09:56:18 hannken Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -185,14 +185,10 @@ sysvbfs_open(void *arg) struct vnode *v = a->a_vp; struct sysvbfs_node *bnode = v->v_data; struct bfs_inode *inode = bnode->inode; - struct bfs *bfs = bnode->bmp->bfs; - struct bfs_dirent *dirent; DPRINTF("%s:\n", __func__); KDASSERT(v->v_type == VREG || v->v_type == VDIR); - if (!bfs_dirent_lookup_by_inode(bfs, inode->number, &dirent)) - return ENOENT; bnode->update_atime = true; if ((a->a_mode & FWRITE) && !(a->a_mode & O_APPEND)) { bnode->size = 0;