ONTAP currently maintains 4 times:
* atime, updated when the inode is accessed (unless you have disabled that on the volume),
* mtime, updated when the file is modified,
* ctime, updated when the inode is changed, and
* crtime, which is set when the inode is created.
Probably what is happening is that the Unix client is displaying the "mtime", while the Windows client is displaying the "crtime". The CIFS protocol has calls to retrieve the ctime, but I don't know of a way to get the ctime using the Win32 APIs. Also, the crtime is not available to NFS clients until NFSv4. So it looks like you're ok if mtime works for you; just use dir/tw from NT.
Mark
-----Original Message----- From: neil lehrer [mailto:nlehrer@ibb.gov] Sent: Friday, October 12, 2001 7:40 AM To: toasters Cc: Chris Kern; Curt Huyser Subject: cifs file creation date issue
hi,
i used find . -depth -print | cpio -pdm /target-directory
to copy files from sun box to filer.
if i look at the the file creation dates on the filer from an nfs mount they look okay, the same as on the source.
but if i look at the creation dates from a cifs connection using dir /tc
C:\WINNT>dir /?|more Displays a list of files and subdirectories in a directory. DIR [drive:][path][filename] [/P] [/W] [/D] [/A[[:]attributes]] [/O[[:]sortorder]] [/T[[:]timefield]] [/S] [/B] [/L] [/N] [/X] [/C] /T Controls which time field displayed or used for sorting timefield C Creation A Last Access W Last Written
and some other utils the creation date on the files is the date i cp'd the files over.
the files are in a unix style qtree and i am running ontap 6.01r3d3.
any ideas? i would really like the creation dates to be correct for all access methods. --
regards
+++++++++++++++++++++++++++++++++++++++++++++++++
- Neil Lehrer
- United States International Broadcasting Bureau
- System Development Division
- voice 202 619-2524
- fax 202 619-3576
- nlehrer@ibb.gov
- " is this crisis an opportunity or just
- another grab the fire extinguisher moment?"
+++++++++++++++++++++++++++++++++++++++++++++++++