Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/perfused Fix the confusion between nodeid and inode...
details: https://anonhg.NetBSD.org/src/rev/76ef8c2837eb
branches: trunk
changeset: 770710:76ef8c2837eb
user: manu <manu%NetBSD.org@localhost>
date: Sun Oct 30 05:17:41 2011 +0000
description:
Fix the confusion between nodeid and inode numbers
diffstat:
usr.sbin/perfused/msg.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 05eea3ad8a1f -r 76ef8c2837eb usr.sbin/perfused/msg.c
--- a/usr.sbin/perfused/msg.c Sun Oct 30 05:11:37 2011 +0000
+++ b/usr.sbin/perfused/msg.c Sun Oct 30 05:17:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msg.c,v 1.16 2011/08/30 20:17:01 joerg Exp $ */
+/* $NetBSD: msg.c,v 1.17 2011/10/30 05:17:41 manu Exp $ */
/*-
* Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved.
@@ -180,7 +180,10 @@
DERR(EX_OSERR, "puffs_framebuf_make failed");
len = payload_len + sizeof(*fih);
- nodeid = (opc != 0) ? perfuse_get_ino(pu, opc) : PERFUSE_UNKNOWN_INO;
+ if (opc != 0)
+ nodeid = perfuse_get_nodeid(pu, opc);
+ else
+ nodeid = PERFUSE_UNKNOWN_NODEID;
if (puffs_framebuf_reserve_space(pb, len) != 0)
DERR(EX_OSERR, "puffs_framebuf_reserve_space failed");
Home |
Main Index |
Thread Index |
Old Index