Revision af5a30d8cfcfc561336f982b06345d6b815e0bb3 authored by Nick Piggin on 03 June 2010, 12:01:46 UTC, committed by Al Viro on 04 June 2010, 21:16:30 UTC
mtime and ctime should be changed only if the file size has actually
changed. Patches changing ext2 and tmpfs from vmtruncate to new truncate
sequence has caused regressions where they always update timestamps.

There is some strange cases in POSIX where truncate(2) must not update
times unless the size has acutally changed, see 6e656be89.

This area is all still rather buggy in different ways in a lot of
filesystems and needs a cleanup and audit (ideally the vfs will provide
a simple attribute or call to direct all filesystems exactly which
attributes to change). But coming up with the best solution will take a
while and is not appropriate for rc anyway.

So fix recent regression for now.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 8718d36
History
File Mode Size
crush
Kconfig -rw-r--r-- 821 bytes
Makefile -rw-r--r-- 848 bytes
README -rw-r--r-- 824 bytes
addr.c -rw-r--r-- 31.7 KB
armor.c -rw-r--r-- 1.8 KB
auth.c -rw-r--r-- 5.6 KB
auth.h -rw-r--r-- 2.9 KB
auth_none.c -rw-r--r-- 2.8 KB
auth_none.h -rw-r--r-- 526 bytes
auth_x.c -rw-r--r-- 16.1 KB
auth_x.h -rw-r--r-- 835 bytes
auth_x_protocol.h -rw-r--r-- 1.7 KB
buffer.c -rw-r--r-- 1.6 KB
buffer.h -rw-r--r-- 818 bytes
caps.c -rw-r--r-- 80.0 KB
ceph_debug.h -rw-r--r-- 877 bytes
ceph_frag.c -rw-r--r-- 328 bytes
ceph_frag.h -rw-r--r-- 3.0 KB
ceph_fs.c -rw-r--r-- 1.8 KB
ceph_fs.h -rw-r--r-- 21.7 KB
ceph_hash.c -rw-r--r-- 2.7 KB
ceph_hash.h -rw-r--r-- 435 bytes
ceph_strings.c -rw-r--r-- 5.9 KB
crypto.c -rw-r--r-- 10.1 KB
crypto.h -rw-r--r-- 1.3 KB
debugfs.c -rw-r--r-- 12.3 KB
decode.h -rw-r--r-- 4.2 KB
dir.c -rw-r--r-- 33.7 KB
export.c -rw-r--r-- 5.4 KB
file.c -rw-r--r-- 24.2 KB
inode.c -rw-r--r-- 48.2 KB
ioctl.c -rw-r--r-- 4.3 KB
ioctl.h -rw-r--r-- 1.2 KB
mds_client.c -rw-r--r-- 78.5 KB
mds_client.h -rw-r--r-- 10.1 KB
mdsmap.c -rw-r--r-- 4.1 KB
mdsmap.h -rw-r--r-- 1.2 KB
messenger.c -rw-r--r-- 56.7 KB
messenger.h -rw-r--r-- 8.1 KB
mon_client.c -rw-r--r-- 21.0 KB
mon_client.h -rw-r--r-- 2.9 KB
msgpool.c -rw-r--r-- 1.4 KB
msgpool.h -rw-r--r-- 692 bytes
msgr.h -rw-r--r-- 5.0 KB
osd_client.c -rw-r--r-- 39.4 KB
osd_client.h -rw-r--r-- 5.3 KB
osdmap.c -rw-r--r-- 25.5 KB
osdmap.h -rw-r--r-- 3.8 KB
pagelist.c -rw-r--r-- 1.1 KB
pagelist.h -rw-r--r-- 1.3 KB
rados.h -rw-r--r-- 11.6 KB
snap.c -rw-r--r-- 25.0 KB
super.c -rw-r--r-- 26.9 KB
super.h -rw-r--r-- 27.0 KB
types.h -rw-r--r-- 475 bytes
xattr.c -rw-r--r-- 20.1 KB

README

back to top