David Dyer-Bennet
2007-Dec-24 03:53 UTC
[zfs-discuss] What are the dates ls shows on a snapshot?
Just out of curiosity, what are the dates ls -l shows on a snapshot? Looks like they might be the pool creation date. bash-3.2$ ls -l /home/.zfs/snapshot/ total 15 drwxr-xr-x 9 root sys 9 Sep 29 2006 20071126-2328-first-post-move drwxr-xr-x 9 root sys 9 Sep 29 2006 20071127-2255-tp-moved drwxr-xr-x 9 root sys 9 Sep 29 2006 20071130-2230 drwxr-xr-x 9 root sys 9 Sep 29 2006 20071206-2148 drwxr-xr-x 9 root sys 9 Sep 29 2006 20071214-2147 (Those snapshots were created on the dates in their names, somewhere near the times.) -- David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info
eric kustarz
2008-Jan-02 22:30 UTC
[zfs-discuss] What are the dates ls shows on a snapshot?
On Dec 23, 2007, at 7:53 PM, David Dyer-Bennet wrote:> Just out of curiosity, what are the dates ls -l shows on a snapshot? > Looks like they might be the pool creation date.The ctime and mtime are from the file system creation date. The atime is the current time. See: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/ common/fs/zfs/zfs_ctldir.c#204 http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/ common/fs/zfs/zfs_ctldir.c#302 eric> > bash-3.2$ ls -l /home/.zfs/snapshot/ > total 15 > drwxr-xr-x 9 root sys 9 Sep 29 2006 > 20071126-2328-first-post-move > drwxr-xr-x 9 root sys 9 Sep 29 2006 20071127-2255- > tp-moved > drwxr-xr-x 9 root sys 9 Sep 29 2006 20071130-2230 > drwxr-xr-x 9 root sys 9 Sep 29 2006 20071206-2148 > drwxr-xr-x 9 root sys 9 Sep 29 2006 20071214-2147 > > (Those snapshots were created on the dates in their names, somewhere > near the times.) > > -- > David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ > Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ > Photos: http://dd-b.net/photography/gallery/ > Dragaera: http://dragaera.info > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss