Subject: Re: Very strange behaviour of LFS and TMPFS
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Aleksey Cheusov <cheusov@tut.by>
List: netbsd-help
Date: 11/17/2007 22:05:35
> On Wed, Nov 14, 2007 at 08:30:25PM +0200, Aleksey Cheusov wrote:
> ...
>> 0 trtr>touch file0
>> 0 trtr>make file3
> ...
>> After toching file0, file3 is rebuilt NOT ALWAYS. Why?
> How long do you wait between the "touch" and the "make"?
You mix message from testing LFS/TMPFS and "after touching..." message
that concerns EXT2FS only.
LFS/TMPFS:
0 trtr>touch file0; sleep 5; make file3
cat file0 > file1
`file3' is up to date.
0 trtr>ls -lt file*
-rw-r--r-- 1 cheusov syntagma 4 Nov 17 22:00 file1
-rw-r--r-- 1 cheusov syntagma 4 Nov 17 22:00 file0
-rw-r--r-- 1 cheusov syntagma 4 Nov 17 14:41 file3
-rw-r--r-- 1 cheusov syntagma 4 Nov 17 14:41 file2
-rw-r--r-- 1 cheusov syntagma 0 Nov 17 14:41 file0~
0 trtr>
EXT2FS (works correctly):
0 trtr>touch file0; sleep 5; make file3
cat file0 > file1
cat file1 > file2
cat file2 > file3
0 trtr>
But when I remove sleep 5 it sometimes fails:
0 trtr>touch file0; sleep 5; make file3
cat file0 > file1
cat file1 > file2
cat file2 > file3
0 trtr>touch file0; make file3
cat file0 > file1
cat file1 > file2
cat file2 > file3
0 trtr>touch file0; make file3
cat file0 > file1
cat file1 > file2
cat file2 > file3
0 trtr>touch file0; make file3
cat file0 > file1
cat file1 > file2
cat file2 > file3
0 trtr>touch file0; make file3
`file3' is up to date.
0 trtr>touch file0; make file3
cat file0 > file1
cat file1 > file2
cat file2 > file3
0 trtr>touch file0; make file3
`file3' is up to date.
--
Best regards, Aleksey Cheusov.