>You can do in the kernel by calling vnodetopath(). I don't know if it
>is exposed to user space.

Yes, in /proc/*/path  (kinda).

>But that could be slow if you have large directories so you have to
>think about where you would use it.

The kernel caches file names; however, it cannot be use for files that 
aren't in use.

It is certainly possible to create a .zfs/snapshot_byinode but it is not 
clear when it helps but it can be used for finding the earlier copy of a 
directory (netapp/.snapshot)

Casper

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to