From: Philipp Hahn <hahn@univention.de>
To: kvm@vger.kernel.org
Subject: Re: [PATCH v4] virtio-9p: fix build on !CONFIG_UTIMENSAT
Date: Thu, 18 Nov 2010 09:28:11 +0100 [thread overview]
Message-ID: <201011180928.16981.hahn@univention.de> (raw)
In-Reply-To: <4CE47643.7030808@jp.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]
Hello,
Am Donnerstag 18 November 2010 01:41:39 schrieb Hidetoshi Seto:
> This patch introduce a fallback mechanism for old systems that do not
> support utimensat(). This fix build failure with following warnings:
> +#ifdef CONFIG_UTIMENSAT
> + return utimensat(dirfd, path, times, flags);
> +#else
> + /* Fallback: use utimes() instead of utimensat() */
Since we also had a problem with utimestat() some time ago with Samba
<http://lists.samba.org/archive/samba-technical/2010-November/074613.html>
I'd like to comment on that:
Your have to be careful about compile-time-detection and runtime-detection: If
you later run your utimestat()-enabled binary on an older kernel not
supporting that syscall, you get -1 as the return-value and errno=ENOSYS. So
even if you detected utimesatat() during compile-time, please always provide
a fallback for run-time.
This is less important for people compiling there own version of kvm, but is
essential for Linux distributions, since people often run newer kvm versions
on older kernels.
Sincerely
Philipp Hahn
--
Philipp Hahn Open Source Software Engineer hahn@univention.de
Univention GmbH Linux for Your Business fon: +49 421 22 232- 0
Mary-Somerville-Str.1 28359 Bremen fax: +49 421 22 232-99
http://www.univention.de
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2010-11-18 8:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 0:41 [PATCH v4] virtio-9p: fix build on !CONFIG_UTIMENSAT Hidetoshi Seto
2010-11-18 8:02 ` Jes Sorensen
2010-11-18 8:48 ` Hidetoshi Seto
2010-11-18 9:09 ` Jes Sorensen
2010-11-18 8:28 ` Philipp Hahn [this message]
2010-11-18 9:05 ` Hidetoshi Seto
2010-11-18 13:12 ` Philipp Hahn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201011180928.16981.hahn@univention.de \
--to=hahn@univention.de \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox