diff options
author | Miles Bader <miles@gnu.org> | 1997-06-20 05:40:54 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-06-20 05:40:54 +0000 |
commit | 43c165f7ff4d63d0506ef926bb5a9c1ecec32478 (patch) | |
tree | 5ece39207cf1ea2a4ab87addf4543ea09a7220f5 | |
parent | 986af68f7d789ba2537d61e9f3b8b1800b940419 (diff) |
(diskfs_S_io_stat):
Use fshelp_translated rather than fshelp_fetch_control.
-rw-r--r-- | libdiskfs/io-stat.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index fb84fa68..e51f6d93 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.c @@ -25,7 +25,6 @@ diskfs_S_io_stat (struct protid *cred, io_statbuf_t *statbuf) { struct node *np; - mach_port_t atrans; if (!cred) return EOPNOTSUPP; @@ -41,12 +40,8 @@ diskfs_S_io_stat (struct protid *cred, bcopy (&np->dn_stat, statbuf, sizeof (struct stat)); statbuf->st_mode &= ~(S_IATRANS | S_IROOT); - if (fshelp_fetch_control (&np->transbox, &atrans) == 0 - && atrans != MACH_PORT_NULL) - { - statbuf->st_mode |= S_IATRANS; - mach_port_deallocate (mach_task_self (), atrans); - } + if (fshelp_translated (&np->transbox)) + statbuf->st_mode |= S_IATRANS; if (cred->po->shadow_root == np || np == diskfs_root_node) statbuf->st_mode |= S_IROOT; |