summaryrefslogtreecommitdiff
path: root/libnetfs/netfs.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-09-02 11:37:06 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-15 23:08:37 +0200
commit2ea00da3929b9b50c3860914249b3ea7691b63c8 (patch)
tree768ffebcc8ecc0cad41fce5fb54b67a8a19f5630 /libnetfs/netfs.h
parent06d49cdadd9e96361f3fe49b9c940b88bb869284 (diff)
libnetfs: track file name in struct peropen
Track the relative path used to obtain a file handle in the struct peropen. * libnetfs/netfs.h (struct peropen): New field path. * libnetfs/make-peropen.c (netfs_make_peropen): Initialize path. * libnetfs/release-peropen.c (netfs_release_peropen): Free path. * libnetfs/fsys-getroot.c (netfs_S_fsys_getroot): Initialize path. * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Preserve the path.
Diffstat (limited to 'libnetfs/netfs.h')
-rw-r--r--libnetfs/netfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h
index d1ebed01..2b9454a9 100644
--- a/libnetfs/netfs.h
+++ b/libnetfs/netfs.h
@@ -63,6 +63,8 @@ struct peropen
mach_port_t shadow_root_parent;
/* If in a shadow tree, its root node in this translator. */
struct node *shadow_root;
+
+ char *path;
};
/* A unique one of these exists for each node currently in use. */