From 183349d085e40f4a9c583a99343762ffc55759a6 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 3 Jul 1996 15:37:25 +0000 Subject: (diskfs_S_io_identity): Use newer interface. --- libdiskfs/io-identity.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/libdiskfs/io-identity.c b/libdiskfs/io-identity.c index 53302151..2cd64907 100644 --- a/libdiskfs/io-identity.c +++ b/libdiskfs/io-identity.c @@ -39,12 +39,15 @@ diskfs_S_io_identity (struct protid *cred, np = cred->po->np; mutex_lock (&np->lock); - *id = fshelp_get_identity (diskfs_port_bucket, np->dn_stat.st_ino); - *idtype = MACH_MSG_TYPE_MAKE_SEND; - *fsys = diskfs_fsys_identity; - *fsystype = MACH_MSG_TYPE_MAKE_SEND; - *fileno = np->dn_stat.st_ino; + err = fshelp_get_identity (diskfs_port_bucket, np->dn_stat.st_ino, id); + if (!err) + { + *idtype = MACH_MSG_TYPE_MAKE_SEND; + *fsys = diskfs_fsys_identity; + *fsystype = MACH_MSG_TYPE_MAKE_SEND; + *fileno = np->dn_stat.st_ino; + } mutex_unlock (&np->lock); - return 0; + return err; } -- cgit v1.2.3