Re: [zfs-discuss] Mapping inode numbers to file names

2010-04-30 Thread A Darren Dunham
On Wed, Apr 28, 2010 at 09:49:04PM +0200, Ragnar Sundblad wrote: On 28 apr 2010, at 14.06, Edward Ned Harvey wrote: What indicators do you have that ONTAP/WAFL has inode-name lookup functionality? I don't think it has any such thing - WAFL is pretty much an UFS/FFS that does COW instead of

Re: [zfs-discuss] Mapping inode numbers to file names

2010-04-28 Thread Edward Ned Harvey
From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Edward Ned Harvey Look up the inode number of README.  (for example, ls -i README)     (suppose it’s inode 12345) find /tank/.zfs/snapshot -inum 12345 Problem is, the find

Re: [zfs-discuss] Mapping inode numbers to file names

2010-04-28 Thread Michael Schuster
On 28.04.10 14:06, Edward Ned Harvey wrote: From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Edward Ned Harvey Look up the inode number of README. (for example, ls -i README) (suppose it’s inode 12345) find

Re: [zfs-discuss] Mapping inode numbers to file names

2010-04-28 Thread Ragnar Sundblad
On 28 apr 2010, at 14.06, Edward Ned Harvey wrote: From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Edward Ned Harvey Look up the inode number of README. (for example, ls -i README) (suppose it’s inode 12345) find

Re: [zfs-discuss] Mapping inode numbers to file names

2010-04-28 Thread Edward Ned Harvey
From: Ragnar Sundblad [mailto:ra...@csc.kth.se] Sent: Wednesday, April 28, 2010 3:49 PM What indicators do you have that ONTAP/WAFL has inode-name lookup functionality? I don't have any such indicator, and if that's the way my words came out, sorry for that. Allow me to clarify: In

Re: [zfs-discuss] Mapping inode numbers to file names

2010-04-28 Thread Victor Latushkin
On Apr 29, 2010, at 3:03 AM, Edward Ned Harvey wrote: From: Ragnar Sundblad [mailto:ra...@csc.kth.se] Sent: Wednesday, April 28, 2010 3:49 PM What indicators do you have that ONTAP/WAFL has inode-name lookup functionality? I don't have any such indicator, and if that's the way my words

Re: [zfs-discuss] Mapping inode numbers to file names

2010-04-28 Thread Richard L. Hamilton
[...] There is a way to do this kind of object to name mapping, though there's no documented public interface for it. See zfs_obj_to_path() function and ZFS_IOC_OBJ_TO_PATH ioctl. I think it should also be possible to extend it to handle multiple names (in case of multiple hardlinks) in

[zfs-discuss] Mapping inode numbers to file names

2010-04-27 Thread Edward Ned Harvey
Let's suppose you rename a file or directory. /tank/widgets/a/rel2049_773.13-4/somefile.txt Becomes /tank/widgets/b/foogoo_release_1.9/README Let's suppose you are now working on widget B, and you want to look at the past zfs snapshot of README, but you don't remember where it came from.