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/diskfs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libdiskfs/diskfs.h') diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 0f9c1d39..24895172 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -69,6 +69,9 @@ struct peropen mach_port_t shadow_root_parent; /* If in a shadow tree, its root node in this translator. */ struct node *shadow_root; + + /* Path relative to the root of the translator. */ + char *path; }; /* A unique one of these exists for each node currently in use (and -- cgit v1.2.3