bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moving timestamp preservation to the last step in copy_internal() /


From: Paul Eggert
Subject: Re: moving timestamp preservation to the last step in copy_internal() / copy_reg()
Date: Tue, 09 May 2006 22:28:51 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Mike Frysinger <address@hidden> writes:

> so just ignore me, thanks :)

OK, but, the original message at
<http://bugs.gentoo.org/show_bug.cgi?id=132673> points out a real
problem.  However, the problem does not occur with me, so it most
likely is a bug in his NFS implementation (perhaps the gentoo NFS
client code?).

Here's an example of cp -p working on Solaris 8 (sparc) with an
NFS-mounted file:

1017-kiwi $ cp --version | head -n1
cp (GNU coreutils) 5.94
1018-kiwi $ truss -o tr cp -p /etc/motd motd
1019-kiwi $ tail tr
read(3, " S u n   M i c r o s y s".., 8192)     = 59
write(4, " S u n   M i c r o s y s".., 59)      = 59
read(3, 0xFFFFFFFF7FFFC000, 8192)               = 0
utimes("motd", 0xFFFFFFFF7FFFADF0)              = 0
fchown(4, 0, 3)                                 Err#1 EPERM
close(4)                                        = 0
close(3)                                        = 0
close(1)                                        = 0
lseek(0, 0, SEEK_CUR)                           = 7678
_exit(0)
1020-kiwi $ stat /etc/motd motd
  File: `/etc/motd'
  Size: 59              Blocks: 2          IO Block: 8192   regular file
Device: 7600000000h/506806140928d       Inode: 123984      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    3/     sys)
Access: 2006-05-09 22:23:03.386866000 -0700
Modify: 2001-10-18 04:51:05.000000000 -0700
Change: 2006-03-01 04:30:00.841368000 -0800
  File: `motd'
  Size: 59              Blocks: 2          IO Block: 8192   regular file
Device: 10600006a67h/1125281458791d     Inode: 1369        Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 5823/  eggert)   Gid: (   30/ faculty)
Access: 2006-05-09 22:19:48.293777000 -0700
Modify: 2001-10-18 04:51:05.000000000 -0700
Change: 2006-05-09 22:23:03.385977000 -0700
1021-kiwi $ df -k .
Filesystem           1K-blocks      Used Available Use% Mounted on
ostrich:/export/ostrich/f2
                      15490539  12558428   2777206  82% /u/f2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]