> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- > boun...@opensolaris.org] On Behalf Of Tim Haley > > You can see it with ls: > # ls -ld -% all /net/server/export/ws/timh/nvc > drwxr-xr-x 9 timh staff 13 Apr 21 01:25 > /net/server/export/ws/timh/nvc/ > timestamp: atime Apr 21 07:54:05 2010 > timestamp: ctime Apr 21 01:25:48 2010 > timestamp: mtime Apr 21 01:25:48 2010 > timestamp: crtime Jun 22 08:27:23 2009
This is precisely the point of the discussion. That doesn't work. Observe: (First of all, what system do you have -% on? I don't have it on either solaris 10, or rhel 4) You want to get the atime, ctime, mtime, crtime. I am now repeating what's already been discussed in this thread. Observe: The atime, ctime, mtime are all useless. Because here are two different snapshots, taken on different days, and the mtime etc are identical. You can't use that information to figure out which is newer, if you distrust the name of the snap to give you the time of the snap. It's been mentioned that you can "zfs list -t snapshot" to get them sorted correctly, but that's the best we've got, and it's only available on the host itself. Not available on NFS client. (From the ZFS file server itself) I haven't found any way to even display the mtime. Neither ls or stat. This was all I found: [r...@nas snapshot]# python >>> import os >>> os.stat('/share/.zfs/snapshot/daily-2010-04-21-00-00-00') (16877, 3L, 47514090L, 16, 0, 0, 20L, 1269878840, 1269878847, 1269878847) >>> >>> os.stat('/share/.zfs/snapshot/daily-2010-04-20-00-00-00') (16877, 3L, 47514101L, 16, 0, 0, 20L, 1269878840, 1269878847, 1269878847) The last 3 are atime, mtime, ctime. All identical. (From a NFS client, RHEL 4) [ehar...@air ~]$ stat /share/.zfs/snapshot/daily-2010-04-21-00-00-00 /share/.zfs/snapshot/daily-2010-04-20-00-00-00 File: `/share/.zfs/snapshot/daily-2010-04-21-00-00-00' Size: 20 Blocks: 3 IO Block: 32768 directory Device: 10h/16d Inode: 3 Links: 16 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2010-03-29 12:07:20.478083718 -0400 Modify: 2010-03-29 12:07:27.110569183 -0400 Change: 2010-03-29 12:07:27.110569183 -0400 File: `/share/.zfs/snapshot/daily-2010-04-20-00-00-00' Size: 20 Blocks: 3 IO Block: 32768 directory Device: 10h/16d Inode: 3 Links: 16 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2010-03-29 12:07:20.478083718 -0400 Modify: 2010-03-29 12:07:27.110569183 -0400 Change: 2010-03-29 12:07:27.110569183 -0400 _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss