Re: wrong atime created by NFS clients (Mac OX 10.5 and 10.6).
Re: wrong atime created by NFS clients (Mac OX 10.5 and 10.6).
- Subject: Re: wrong atime created by NFS clients (Mac OX 10.5 and 10.6).
- From: 林 智子 <email@hidden>
- Date: Mon, 27 Sep 2010 10:21:40 +0900
This is additional informations.
We use iMac with NFS mounted home directory from EMC file server.
The NFS is version 3.
Acctual operations are as follows.
----------------------------------------------------------------
% whoami
emc09
% cd ~
% pwd
/Network/Servers/emcfsv01/vol/vol1/home/emc09
% cat wrong_atime.c
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
main() {
int fd;
/* O_EXCL option will cause wrong atime */
fd = open("AIZU", O_CREAT | O_EXCL | O_RDWR, 0644);
close(fd);
exit(0);
}
% cc wrong_atime.c
% ./a.out
% ls -lu AIZU
-rw-r--r-- 1 emc09 student 0 Nov 9 1920
----------------------------------------------------------------
Thanks in advance.
On Mon, 27 Sep 2010 08:38:34 +0900
林 智子 <email@hidden> wrote:
> We have iMac computers in classrooms, and they are running as an NFS client.
> We have found that the wrong access time (atime) is created by Mac OS 10.5
> and 10.6.
>
> A file that is opened by using "O_CREAT|O_EXCL" on the NFS-mounted directory
> will have the wrong atime. For example, the year will appear as 1920 or 2037
> depending on the IP address of the NFS client.
>
> This problem can also be found with Solaris NFS server and EMC Celerra.
>
> The following program will create a file having the wrong atime on an
> NFS-mounted directory:
>
> -------------------
> #include <fcntl.h>
> #include <stdlib.h>
> #include <string.h>
> #include <stddef.h>
>
> main() {
>
> int fd;
>
> /* O_EXCL option will cause wrong atime */
> fd = open("AIZU", O_CREAT | O_EXCL | O_RDWR, 0644);
> close(fd);
> exit(0);
> }
> -------------------
>
> The phenomenon is quite similar to the following problems on FreeBSD reported in 2001:
> http://www.mail-archive.com/email@hidden/msg22084.html
>
> If anyone knows a solution to this problem, we would greatly appreciate your advice. Thanks in advance.
>
> ----
> Tomoko Hayashi
> The University og Aizu
> email@hidden
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Filesystem-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
----
Tomoko Hayashi
The University og Aizu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden