From 06d49cdadd9e96361f3fe49b9c940b88bb869284 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Mon, 2 Sep 2013 11:37:05 +0200 Subject: 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. --- libdiskfs/fsys-getroot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libdiskfs/fsys-getroot.c') 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) -- cgit v1.2.3