Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/sysvbfs It is not the task of sysvbfs_open() to check...
details: https://anonhg.NetBSD.org/src/rev/4f625024d2bb
branches: trunk
changeset: 325418:4f625024d2bb
user: hannken <hannken%NetBSD.org@localhost>
date: Tue Dec 24 09:56:18 2013 +0000
description:
It is not the task of sysvbfs_open() to check for unlinked nodes.
diffstat:
sys/fs/sysvbfs/sysvbfs_vnops.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r 78e642f5d8b3 -r 4f625024d2bb sys/fs/sysvbfs/sysvbfs_vnops.c
--- a/sys/fs/sysvbfs/sysvbfs_vnops.c Tue Dec 24 09:23:33 2013 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vnops.c Tue Dec 24 09:56:18 2013 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index