From 2ea00da3929b9b50c3860914249b3ea7691b63c8 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Mon, 2 Sep 2013 11:37:06 +0200 Subject: 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. --- libnetfs/netfs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libnetfs/netfs.h') 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. */ -- cgit v1.2.3