summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-03 15:37:25 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-03 15:37:25 +0000
commit183349d085e40f4a9c583a99343762ffc55759a6 (patch)
tree214b2e4ce4cddcce41de956be5f1686a3bff9dc1 /libdiskfs
parent76fcb3e80c4668aa48d60768f3b13dd7d590fadc (diff)
(diskfs_S_io_identity): Use newer interface.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/io-identity.c15
1 files 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;
}