summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-03-02 21:07:18 +0000
committerMiles Bader <miles@gnu.org>1997-03-02 21:07:18 +0000
commitd2b28d588e33c2352fb57fc2d77504a6027e43d8 (patch)
tree063d0af6a1ecc113af76069be4062d3ccefb424b
parent9d78677f2e9d0fb69d6e45fbc20a6abd614e481c (diff)
(diskfs_S_io_identity):
Pass CRED's shadow root inode number to fshelp_get_identity when creating a shadow root fsid, not INUM.
-rw-r--r--libdiskfs/io-identity.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/io-identity.c b/libdiskfs/io-identity.c
index 7ac335ae..39ca3706 100644
--- a/libdiskfs/io-identity.c
+++ b/libdiskfs/io-identity.c
@@ -46,7 +46,9 @@ diskfs_S_io_identity (struct protid *cred,
if (! err)
if (cred->po->shadow_root && cred->po->shadow_root != diskfs_root_node)
{
- err = fshelp_get_identity (diskfs_port_bucket, inum, fsys);
+ err = fshelp_get_identity (diskfs_port_bucket,
+ cred->po->shadow_root->dn_stat.st_ino,
+ fsys);
if (err)
mach_port_deallocate (mach_task_self (), *id);
}