summaryrefslogtreecommitdiff
path: root/procfs/netfs.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 21:08:48 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 21:08:48 +0000
commit21adb5284111190057db245cfc2b54091920c373 (patch)
treeeb7f1709f14f18c7fc705be8da2e941bd07fb49b /procfs/netfs.c
parentbf5c437c82625cd44897faaa84ac81c470423846 (diff)
New upstream snapshot
Diffstat (limited to 'procfs/netfs.c')
-rw-r--r--procfs/netfs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/procfs/netfs.c b/procfs/netfs.c
index c139d11a..276c57cc 100644
--- a/procfs/netfs.c
+++ b/procfs/netfs.c
@@ -230,6 +230,17 @@ void netfs_node_norefs (struct node *np)
pthread_spin_lock (&netfs_node_refcnt_lock);
}
+/* The user may define this function (but should define it together
+ with netfs_set_translator). For locked node NODE with S_IPTRANS
+ set in its mode, look up the name of its translator. Store the
+ name into newly malloced storage, and return it in *ARGZ; set
+ *ARGZ_LEN to the total length. */
+error_t netfs_get_translator (struct node *np, char **argz,
+ size_t *argz_len)
+{
+ return procfs_get_translator (np, argz, argz_len);
+}
+
/* Libnetfs callbacks managed with libfshelp. */