From 4e739407735755630c1ee8407285ed250fffca9c Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Sat, 5 Feb 1994 00:13:03 +0000 Subject: Formerly io-stat.c.~3~ --- libdiskfs/io-stat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index 757e84e4..6b139b6a 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.c @@ -17,6 +17,7 @@ #include "priv.h" #include "io_S.h" +#include /* Implement io_stat as described in . */ error_t @@ -24,15 +25,15 @@ diskfs_S_io_stat (struct protid *cred, io_statbuf_t *statbuf) { struct node *np; - error_t error; if (!cred) return EOPNOTSUPP; np = cred->po->np; mutex_lock (&np->lock); - ioserver_get_conch (&ip->conch); + ioserver_get_conch (&np->conch); + diskfs_set_node_times (np); bcopy (&np->dn_stat, statbuf, sizeof (struct stat)); mutex_unlock (&np->lock); - return error; + return 0; } -- cgit v1.2.3