[Pkg-samba-maint] Bug#639364: samba: Cached and uncached file attributes have distinct timestamps
Cyril Bouthors
cyb at debian.org
Fri Aug 26 12:27:09 UTC 2011
Package: samba
Version: 2:3.5.11~dfsg-1~bpo60+1
Severity: important
Cached and uncached file attributes have distinct timestamps under CIFS.
Here is a way to reproduce the issue with a CIFS/ext3 export:
# touch x; ls --full-time x; sleep 1; ls --full-time x
-rw-rw-rw- 1 atn atn 0 2011-08-26 13:32:13.330511809 +0200 x
-rw-rw-rw- 1 atn atn 0 2011-08-26 13:32:13.000000000 +0200 x
^^^^^^^^^
If I run the same CIFS configuration with an ext4 filesystem, the timestamps are
now almost the same but there is still a 67ns difference:
# touch x; ls --full-time x; sleep 1; ls --full-time x
-rw-rw-rw- 1 atn atn 0 2011-08-26 14:02:23.511864967 +0200 x
-rw-rw-rw- 1 atn atn 0 2011-08-26 14:02:23.511864900 +0200 x
^^
On a ext4 FS without CIFS, it just works:
# touch x; ls --full-time x; sleep 1; ls --full-time x
-rw-r--r-- 1 cyb cyb 0 2011-08-26 14:25:42.311759806 +0200 x
-rw-r--r-- 1 cyb cyb 0 2011-08-26 14:25:42.311759806 +0200 x
Timestamps should remain the same whatever the cache status is. It breaks many
applications like Emacs, Gedit, Eclipse because they complain about file
modifications.
This is closely related to http://bugs.debian.org/366940 but not the same, it's
rather quite the opposite.
Same issue with samba/squeeze and samba/squeeze-backports.
Would it be possible to fix it?
Best regards,
-- System Information:
Debian Release: 6.0.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages samba depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii debconf [debconf 1.5.36.1 Debian configuration management sy
ii libacl1 2.2.49-4 Access control list shared library
ii libattr1 1:2.4.44-2 Extended attribute shared library
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libcap2 1:2.19-3 support for getting/setting POSIX.
ii libcomerr2 1.41.12-4stable1 common error description library
ii libcups2 1.4.4-7 Common UNIX Printing System(tm) -
ii libgssapi-krb5-2 1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries - k
ii libk5crypto3 1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries - C
ii libkrb5-3 1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.23-7.2 OpenLDAP libraries
ii libpam-modules 1.1.1-6.1 Pluggable Authentication Modules f
ii libpam-runtime 1.1.1-6.1 Runtime support for the PAM librar
ii libpam0g 1.1.1-6.1 Pluggable Authentication Modules l
ii libpopt0 1.16-1 lib for parsing cmdline parameters
ii libtalloc2 2.0.1-1 hierarchical pool based memory all
ii libtdb1 1.2.1-2+b1 Trivial Database - shared library
ii libwbclient0 2:3.5.11~dfsg-1~bpo60+1 Samba winbind client library
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii procps 1:3.2.8-9 /proc file system utilities
ii samba-common 2:3.5.11~dfsg-1~bpo60+1 common files used by both the Samb
ii update-inetd 4.38+nmu1 inetd configuration file updater
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages samba recommends:
ii logrotate 3.7.8-6 Log rotation utility
ii tdb-tools 1.2.1-2+b1 Trivial Database - bundled binarie
Versions of packages samba suggests:
pn ctdb <none> (no description available)
pn ldb-tools <none> (no description available)
pn openbsd-inetd | inet-superser <none> (no description available)
pn smbldap-tools <none> (no description available)
-- debconf information:
samba/run_mode: daemons
samba/generate_smbpasswd: true
samba-common/title:
--
,''`.
: :' : Cyril Bouthors
`. `' Debian.org
`-
More information about the Pkg-samba-maint
mailing list