diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-12 11:24:14 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-25 11:19:00 +0100 |
commit | 982261fec4707d0c8d0723d90d9c0e465d98aa93 (patch) | |
tree | a62031c4393800cdcc9717455f55c16245c8b995 /libnetfs/fsys-set-options.c | |
parent | 41b88dab57df5a1b490550fd8c4b80788ce55a81 (diff) |
libnetfs: fix receiver lookups in fsys server functions
* mutations.h: Add translation functions.
* netfs.h (struct netfs_control): New declaration.
* priv.h: Define translation functions.
* fsys-get-options.c: Fix receiver lookups.
* fsys-getroot.c: Likewise.
* fsys-goaway.c: Likewise.
* fsys-set-options.c: Likewise.
* fsys-syncfs.c: Likewise.
* fsysstubs.c: Likewise.
Diffstat (limited to 'libnetfs/fsys-set-options.c')
-rw-r--r-- | libnetfs/fsys-set-options.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libnetfs/fsys-set-options.c b/libnetfs/fsys-set-options.c index d7dc743b..fb1c87ef 100644 --- a/libnetfs/fsys-set-options.c +++ b/libnetfs/fsys-set-options.c @@ -31,15 +31,15 @@ /* Implement fsys_set_options as described in <hurd/fsys.defs>. */ error_t -netfs_S_fsys_set_options (fsys_t fsys, +netfs_S_fsys_set_options (struct netfs_control *pt, mach_port_t reply, mach_msg_type_name_t reply_type, char *data, mach_msg_type_number_t data_len, int do_children) { error_t err = 0; - struct port_info *pt = - ports_lookup_port (netfs_port_bucket, fsys, netfs_control_class); + if (!pt) + return EOPNOTSUPP; error_t helper (struct node *np) @@ -64,9 +64,6 @@ netfs_S_fsys_set_options (fsys_t fsys, return error; } - if (!pt) - return EOPNOTSUPP; - #if NOT_YET if (do_children) { @@ -87,7 +84,5 @@ netfs_S_fsys_set_options (fsys_t fsys, #endif } - ports_port_deref (pt); - return err; } |