On Wed, May 19, 2010 at 05:33:05AM -0700, Chris Gerhard wrote:
> The reason for wanting to know is to try and find versions of a file.

No, there's no such guarantee.  The same inode and generation number
pair is extremely unlikely to be re-used, but the inode number itself is
likely to be re-used.

> If a file is renamed then the only way to know that the renamed file
> was the same as a file in a snapshot would be if the inode numbers
> matched. However for that to be reliable it would require the i-nodes
> are not reused.

There's also the crtime (creation time, not to be confused with ctime),
which you can get with ls(1).

>  If they are able to be reused then when an inode number matches I
>  would also have to compare the real creation time which requires
>  looking at the extended attributes.

Right, that's what you'll have to do.

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

Reply via email to