Samba on shares with XFS and kernel 2.6.18

Janek Walkenhorst walkenhorst at univention.de
Fri Nov 19 01:37:29 MST 2010


Am 2010-11-19 06:16:38 schrieb Stefan Gohmann:
> Am Mittwoch 17 November 2010 schrieb Björn Jacke:
> > but doing that correct would be a bit tricky. In
> > vfswrap_fs_capabilities() we also need to know that utimensat() doesn't
> > work to initialize p_ts_res correctly. A test utimensat() call would
> > actually be required to set p_ts_res right, too. POSIX does not even
> > mention that this call may fail with ENOSYS.
> >
> > I would prefer that people with utimensat resulting in ENOSYS should get
> > a big warning in the log files: "never us a glibc which is much more
> > recent than your kernel." This is a well known problem of Debian systems
> > with a way too old XEN kernel. Old kernels with new glibc are not
> > supported by their maintainers. People should just not do this - the lack
> > of utimensat() is just the most obvious place of brokenness, I guess
> > there are more, more subtle brokennesses waiting to be discovered.
>
> You are right, the results are not known if the kernel is too old for the
> glibc. Janek will create a new patch which adds the warning and he will
> also check vfswrap_fs_capabilities. I think this would be the best.
This is the patch with the check in vfswrap_fs_capabilities and a log message 
added.

Greetings
Janek
-- 
Janek Walkenhorst
Software Engineering Apprentice

Univention GmbH
Linux for your business
Mary-Somerville-Str.1
28359 Bremen
Tel. : +49 421 22232-0
Fax : +49 421 22232-99

walkenhorst at univention.de
http://www.univention.de

Geschäftsführer: Peter H. Ganten
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-try-other-methods-if-utimensat-is-not-supported-ret.patch
Type: text/x-diff
Size: 2823 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101119/b0736b6d/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101119/b0736b6d/attachment.pgp>


More information about the samba-technical mailing list