* [uml-devel] [PATCH] Fixed hostfs tv_usec / tv_nsec conversion in 2.6.22.9
@ 2007-11-20 14:49 Dominique Quatravaux
2007-11-20 17:07 ` [uml-devel] [uml-user] " Jeff Dike
0 siblings, 1 reply; 4+ messages in thread
From: Dominique Quatravaux @ 2007-11-20 14:49 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 773 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear UML developpers and users,
The attached patch against Linux 2.6.22.9 fixes an issue with
emulating the utimes() and futimes() system calls, that used to cause
- -EINVAL to be returned from such.
Regards,
- --
<< Tout n'y est pas parfait, mais on y honore certainement les
jardiniers >>
Dominique Quatravaux <dominique@quatravaux.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBR0L0CvTYH7KfeIIFAQJYuAP/a6gUhIS8rTd6daU55XZa+j4B7cnGFxvX
lVXUZYzznsgWP77TZBDkhiisBJPiUJ67Lvnsaq883xjebOteaZ6QjxRMszV7N16o
WOxq9Qu0+bLZjiYuQWuGvw/4j2NJ6BSO9dA+8Lu6siSIxuH8FgNvPnZgXXV0npNg
KgAzwvEmmDE=
=yC7D
-----END PGP SIGNATURE-----
[-- Attachment #2: UML-usec-nsec.diff --]
[-- Type: text/x-patch, Size: 912 bytes --]
diff --git a/fs/hostfs/hostfs_user.c b/fs/hostfs/hostfs_user.c
--- a/fs/hostfs/hostfs_user.c
+++ b/fs/hostfs/hostfs_user.c
@@ -262,17 +262,17 @@ int set_attr(const char *file, struct ho
return err;
times[0].tv_sec = atime_ts.tv_sec;
- times[0].tv_usec = atime_ts.tv_nsec * 1000;
+ times[0].tv_usec = atime_ts.tv_nsec / 1000;
times[1].tv_sec = mtime_ts.tv_sec;
- times[1].tv_usec = mtime_ts.tv_nsec * 1000;
+ times[1].tv_usec = mtime_ts.tv_nsec / 1000;
if (attrs->ia_valid & HOSTFS_ATTR_ATIME_SET) {
times[0].tv_sec = attrs->ia_atime.tv_sec;
- times[0].tv_usec = attrs->ia_atime.tv_nsec * 1000;
+ times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000;
}
if (attrs->ia_valid & HOSTFS_ATTR_MTIME_SET) {
times[1].tv_sec = attrs->ia_mtime.tv_sec;
- times[1].tv_usec = attrs->ia_mtime.tv_nsec * 1000;
+ times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000;
}
if (fd >= 0) {
[-- Attachment #3: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #4: Type: text/plain, Size: 194 bytes --]
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] [uml-user] [PATCH] Fixed hostfs tv_usec / tv_nsec conversion in 2.6.22.9
2007-11-20 14:49 [uml-devel] [PATCH] Fixed hostfs tv_usec / tv_nsec conversion in 2.6.22.9 Dominique Quatravaux
@ 2007-11-20 17:07 ` Jeff Dike
2007-11-21 10:54 ` Dominique Quatravaux
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Dike @ 2007-11-20 17:07 UTC (permalink / raw)
To: Dominique Quatravaux; +Cc: user-mode-linux-devel
On Tue, Nov 20, 2007 at 03:49:47PM +0100, Dominique Quatravaux wrote:
> The attached patch against Linux 2.6.22.9 fixes an issue with
> emulating the utimes() and futimes() system calls, that used to cause
> - -EINVAL to be returned from such.
Whoa.
Can I get a Signed-off-by: from you?
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] [uml-user] [PATCH] Fixed hostfs tv_usec / tv_nsec conversion in 2.6.22.9
2007-11-20 17:07 ` [uml-devel] [uml-user] " Jeff Dike
@ 2007-11-21 10:54 ` Dominique Quatravaux
2007-11-21 18:03 ` Jeff Dike
0 siblings, 1 reply; 4+ messages in thread
From: Dominique Quatravaux @ 2007-11-21 10:54 UTC (permalink / raw)
To: Jeff Dike; +Cc: user-mode-linux-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeff Dike wrote:
>
> Can I get a Signed-off-by: from you?
Sure thing, although I was not planning on asserting copyright on a
grand total of 4 slashes...
- -=-=-=-
- From Dominique Quatravaux <dominique@quatravaux.org>
To convert from tv_nsec to tv_usec, one needs to divide by 1000, not
multiply.
Signed-off-by: Dominique Quatravaux <dominique@quatravaux.org>
- ---
diff --git a/fs/hostfs/hostfs_user.c b/fs/hostfs/hostfs_user.c
- --- a/fs/hostfs/hostfs_user.c
+++ b/fs/hostfs/hostfs_user.c
@@ -262,17 +262,17 @@ int set_attr(const char *file, struct ho
return err;
times[0].tv_sec = atime_ts.tv_sec;
- - times[0].tv_usec = atime_ts.tv_nsec * 1000;
+ times[0].tv_usec = atime_ts.tv_nsec / 1000;
times[1].tv_sec = mtime_ts.tv_sec;
- - times[1].tv_usec = mtime_ts.tv_nsec * 1000;
+ times[1].tv_usec = mtime_ts.tv_nsec / 1000;
if (attrs->ia_valid & HOSTFS_ATTR_ATIME_SET) {
times[0].tv_sec = attrs->ia_atime.tv_sec;
- - times[0].tv_usec = attrs->ia_atime.tv_nsec * 1000;
+ times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000;
}
if (attrs->ia_valid & HOSTFS_ATTR_MTIME_SET) {
times[1].tv_sec = attrs->ia_mtime.tv_sec;
- - times[1].tv_usec = attrs->ia_mtime.tv_nsec * 1000;
+ times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000;
}
if (fd >= 0) {
- --
<< Tout n'y est pas parfait, mais on y honore certainement les
jardiniers >>
Dominique Quatravaux <dominique@quatravaux.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBR0QOWPTYH7KfeIIFAQLaNgQAo/mzyru7m/Iafg57olEQXIy4jMyvJhma
Pd2XC4JKrAIQ0o3ut/IjuYoGatp0vDALsqAfURCKPaSyyy+xxSl5Ihvg0WcbrcSa
jB3ydvweUgiMfcMho6j2zWLUuhMAdlmtprmj1Gy2jfet+5HM9HwlmxzaNB40TeuW
jvSrEvjTHBw=
=YgoE
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] [uml-user] [PATCH] Fixed hostfs tv_usec / tv_nsec conversion in 2.6.22.9
2007-11-21 10:54 ` Dominique Quatravaux
@ 2007-11-21 18:03 ` Jeff Dike
0 siblings, 0 replies; 4+ messages in thread
From: Jeff Dike @ 2007-11-21 18:03 UTC (permalink / raw)
To: Dominique Quatravaux; +Cc: user-mode-linux-devel
On Wed, Nov 21, 2007 at 11:54:16AM +0100, Dominique Quatravaux wrote:
> Sure thing, although I was not planning on asserting copyright on a
> grand total of 4 slashes...
It's the thought that counts :-)
Thanks.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-21 18:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 14:49 [uml-devel] [PATCH] Fixed hostfs tv_usec / tv_nsec conversion in 2.6.22.9 Dominique Quatravaux
2007-11-20 17:07 ` [uml-devel] [uml-user] " Jeff Dike
2007-11-21 10:54 ` Dominique Quatravaux
2007-11-21 18:03 ` Jeff Dike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.