Changing Access/Mod Times on Samba Files
Suellentrop, Mark A
Mark.Suellentrop at JSF.Boeing.com
Fri Oct 20 18:37:43 GMT 2000
We have been using the Perl utime function on NT V4.0 to change the file
access and modification times on a Samba share. This function worked fine on
V2.0.4b but does not work since we went to V2.0.6. Under the new version,
the times are not changed;
#!\bin\perl
$time=now;
utime $now, $now, "I:\mark.tst";
Using truss on the Samba server, I can determine that Sun utime system call
is executed and returns a non-error status of 0;
stat64("mark/mark.tst", 0xEFFFF680) = 0
semop(2, 0xEFFFF498, 1) = 0
open64("mark/mark.tst", O_RDWR) = 10
semop(2, 0xEFFFF420, 1) = 0
semop(2, 0xEFFFF420, 1) = 0
semop(2, 0xEFFFF420, 1) = 0
semop(2, 0xEFFFF420, 1) = 0
getpid() = 19479 [754]
semop(2, 0xEFFFF498, 1) = 0
fstat64(10, 0xEFFFF7B0) = 0
send(7, "\0\0\0 gFF S M BA2\0\0\0".., 107, 0) = 107
poll(0xEFFFDC38, 2, 60000) = 1
recv(7, "\0\0\0 t", 4, 0) = 4
recv(7, "FF S M B 2\0\0\0\01803\0".., 116, 0) = 116
fstat64(10, 0xEFFFFB28) = 0
send(7, "\0\0\0 <FF S M B 2\0\0\0".., 64, 0) = 64
poll(0xEFFFDC38, 2, 60000) = 1
recv(7, "\0\0\0 *", 4, 0) = 4
recv(7, "FF S M B04\0\0\0\01803\0".., 42, 0) = 42
utime("mark/mark.tst", 0xEFFFFBD0) = 0
<============
semop(2, 0xEFFFF998, 1) = 0
getpid() = 19479 [754]
semop(2, 0xEFFFF920, 1) = 0
semop(2, 0xEFFFF920, 1) = 0
semop(2, 0xEFFFF920, 1) = 0
semop(2, 0xEFFFF920, 1) = 0
close(10) = 0
semop(2, 0xEFFFF998, 1) = 0
send(7, "\0\0\0 #FF S M B04\0\0\0".., 39, 0) = 39
poll(0xEFFFDC38, 2, 60000) (sleeping...)
Help!
Mark Suellentrop
The Boeing Co
More information about the samba
mailing list