diff options
Diffstat (limited to 'libdiskfs/fsys-syncfs.c')
-rw-r--r-- | libdiskfs/fsys-syncfs.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libdiskfs/fsys-syncfs.c b/libdiskfs/fsys-syncfs.c index beb8881f..4dceed7f 100644 --- a/libdiskfs/fsys-syncfs.c +++ b/libdiskfs/fsys-syncfs.c @@ -24,14 +24,12 @@ /* Implement fsys_syncfs as described in <hurd/fsys.defs>. */ kern_return_t -diskfs_S_fsys_syncfs (fsys_t controlport, +diskfs_S_fsys_syncfs (struct diskfs_control *pi, mach_port_t reply, mach_msg_type_name_t replytype, int wait, int children) { - struct port_info *pi = ports_lookup_port (diskfs_port_bucket, controlport, - diskfs_control_class); error_t helper (struct node *np) { @@ -49,7 +47,8 @@ diskfs_S_fsys_syncfs (fsys_t controlport, return 0; } - if (!pi) + if (!pi + || pi->pi.class != diskfs_control_class) return EOPNOTSUPP; pthread_rwlock_rdlock (&diskfs_fsys_lock); @@ -67,8 +66,5 @@ diskfs_S_fsys_syncfs (fsys_t controlport, } pthread_rwlock_unlock (&diskfs_fsys_lock); - - ports_port_deref (pi); - return 0; } |