From 44db9af90b7280520c1c599d2bf54dd477961948 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Wed, 14 Oct 2009 14:00:58 +0000 Subject: storage/posix: Use the right macro to set nsec of mtime in posix_do_utimes Signed-off-by: Anand V. Avati BUG: 296 (handle futimes correctly in FUSE) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=296 --- xlators/storage/posix/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 2d60ca4ea60..0f0d500e420 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -490,7 +490,7 @@ posix_do_utimes (xlator_t *this, tv[0].tv_sec = stbuf->st_atime; tv[0].tv_usec = ST_ATIM_NSEC (stbuf) / 1000; tv[1].tv_sec = stbuf->st_mtime; - tv[1].tv_usec = ST_ATIM_NSEC (stbuf) / 1000; + tv[1].tv_usec = ST_MTIM_NSEC (stbuf) / 1000; ret = utimes (path, tv); -- cgit