summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2008-10-03 10:59:53 +0300
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2008-10-03 10:59:53 +0300
commit0d2f7d724254ad78d61b4a2004879b90bf2587d4 (patch)
tree4d870907262ca5ced29115c45f838d9f4252a04d
parente7b2aaa4548c0fa5fb5d6c8586fee63748d16dab (diff)
Revert "Copied the implementation of netfs_S_file_get_translator_cntl from libdiskfs."
This reverts commit e7b2aaa4548c0fa5fb5d6c8586fee63748d16dab.
-rw-r--r--nsmux.c47
-rw-r--r--nsmux.h10
2 files changed, 1 insertions, 56 deletions
diff --git a/nsmux.c b/nsmux.c
index d3764d3b7..a39955997 100644
--- a/nsmux.c
+++ b/nsmux.c
@@ -1837,52 +1837,7 @@ netfs_node_norefs
node_destroy(np);
}/*netfs_node_norefs*/
/*----------------------------------------------------------------------------*/
-/*Implements file_get_translator_cntl as described in <hurd/fs.defs>
- (according to diskfs_S_file_get_translator_cntl)*/
-kern_return_t
-netfs_S_file_get_translator_cntl
- (
- struct protid * user,
- mach_port_t * cntl,
- mach_msg_type_name_t * cntltype
- )
- {
- /*If the information about the user is missing*/
- if(!user)
- return EOPNOTSUPP;
-
- error_t err = 0;
-
- /*Obtain the node for which we are called*/
- node_t * np = user->po->np;
-
- /*Lock the node*/
- mutex_lock(&np->lock);
-
- /*Check if the user is the owner of this node*/
- err = fshelp_isowner(&np->nn_stat, user->user);
-
- /*If no errors have happened*/
- if(!err)
- /*try to fetch the control port*/
- err = fshelp_fetch_control(&np->transbox, cntl);
-
- /*If no errors have occurred, but no port has been returned*/
- if(!err && (cntl == MACH_PORT_NULL))
- /*set the error accordingly*/
- err = ENXIO;
-
- /*If no errors have occurred so far*/
- if(!err)
- /*set the control port type*/
- *cntltype = MACH_MSG_TYPE_MOVE_SEND;
-
- /*Unlock the node*/
- mutex_unlock(&np->lock);
-
- /*Return the result of operations*/
- return err;
- }/*netfs_S_file_get_translator_cntl*/
+
/*----------------------------------------------------------------------------*/
/*Entry point*/
int
diff --git a/nsmux.h b/nsmux.h
index 7f3a51695..fb7504419 100644
--- a/nsmux.h
+++ b/nsmux.h
@@ -396,14 +396,4 @@ netfs_node_norefs
struct node * np
);
/*----------------------------------------------------------------------------*/
-/*Implements file_get_translator_cntl as described in <hurd/fs.defs>
- (according to diskfs_S_file_get_translator_cntl)*/
-kern_return_t
-netfs_S_file_get_translator_cntl
- (
- struct protid * user,
- mach_port_t * cntl,
- mach_msg_type_name_t * cntltype
- );
-/*----------------------------------------------------------------------------*/
#endif /*__NSMUX_H__*/