aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/fsys-getroot.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-09-02 11:37:05 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-15 23:08:25 +0200
commit06d49cdadd9e96361f3fe49b9c940b88bb869284 (patch)
tree87f79b4aaa830c34f260c3057970b8e1d3c9fab3 /libdiskfs/fsys-getroot.c
parent39e97c785a7b7f5fd5458986aa834e4069ce3b2f (diff)
downloadhurd-06d49cdadd9e96361f3fe49b9c940b88bb869284.tar.gz
hurd-06d49cdadd9e96361f3fe49b9c940b88bb869284.tar.bz2
hurd-06d49cdadd9e96361f3fe49b9c940b88bb869284.zip
libdiskfs: track file name in struct peropen
Track the relative path used to obtain a file handle in the struct peropen. * libdiskfs/diskfs.h (struct peropen): New field path. * libdiskfs/peropen-make.c (diskfs_make_peropen): Initialize path. * libdiskfs/peropen-rele.c (diskfs_release_peropen): Free path. * libdiskfs/fsys-getroot.c (diskfs_S_fsys_getroot): Initialize path. * libdiskfs/dir-lookup.c (diskfs_S_dir_lookup): Preserve the path.
Diffstat (limited to 'libdiskfs/fsys-getroot.c')
-rw-r--r--libdiskfs/fsys-getroot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
index 2e11da4c..39973a80 100644
--- a/libdiskfs/fsys-getroot.c
+++ b/libdiskfs/fsys-getroot.c
@@ -51,7 +51,8 @@ diskfs_S_fsys_getroot (fsys_t controlport,
{
root_parent: dotdot,
shadow_root_parent: MACH_PORT_NULL,
- shadow_root: _diskfs_chroot_directory ? diskfs_root_node : NULL /* XXX */
+ shadow_root: _diskfs_chroot_directory ? diskfs_root_node : NULL, /* XXX */
+ path: NULL,
};
if (!pt)