Mailinglist Archive: opensuse-bugs (8114 mails)

< Previous Next >
[Bug 206431] time stamp of mmaped file not updated
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 23 Feb 2007 03:14:48 -0700 (MST)
  • Message-id: <20070223101448.82B8BFD0@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=206431





------- Comment #13 from yxu@xxxxxxxxxx 2007-02-23 03:14 MST -------
Yes, I didn't update ltp on the machine. The testcase should just compare if
ctime and mtime are updated. However I get new results now.

Good news is for the patch against 2.6.16 kernel:

1) on x86_64 machine quake133 with 2.6.16.37-3-xen kernel, I did test again.
And result looks quite fine:

Time before write(): 1172224489
Time before mmap(): 1172224490
Time before write reference: 1172224491
Time before msync(): 1172224492
ctime1: 1172224489, ctime2: 1172224492
mtime1: 1172224489, mtime2: 1172224492
Test Pass

And according to my debug code (I changed the first byte of the file and do an
msync afterwads), it gives out more output:

before mmap ctime00: 1172224515, mtime00: 1172224515
pa, pa, off, size: 34b0c000 a 0 400
pa: a a a
after mmap ctime0: 1172224515, mtime0: 1172224515
pa: b a a
pa: b a a
after msync ctime1: 1172224518, mtime1: 1172224518
pa: c a a
pa: c a a
after 2nd msync ctime2: 1172224518, mtime2: 1172224518
pa: c a a
pa: c a a
after 3rd msync ctime02: 1172224518, mtime02: 1172224518
after munmap ctime3: 1172224518, mtime3: 1172224518

2) I did the test on another ix86 machine auake15 with 2.6.16.37-0.18-smp
kernel, also succeeded.

Time before write(): 1172224065
Time before mmap(): 1172224066
Time before write reference: 1172224067
Time before msync(): 1172224068
ctime1: 1172224065, ctime2: 1172224068
mtime1: 1172224065, mtime2: 1172224068
Test Pass

verbose / debug:
before mmap ctime00: 1172223829, mtime00: 1172223829
pa, pa, off, size: b7fbe000 a 0 400
pa: a a a
after mmap ctime0: 1172223829, mtime0: 1172223829
pa: b a a
pa: b a a
after msync ctime1: 1172223832, mtime1: 1172223832
pa: c a a
pa: c a a
after 2nd msync ctime2: 1172223832, mtime2: 1172223832
pa: c a a
pa: c a a
after 3rd msync ctime02: 1172223832, mtime02: 1172223832
after munmap ctime3: 1172223832, mtime3: 1172223832


Now I am looking for machine with 2.16.20 kernel to test the other patch.


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >