Fri 04 Jan 2008 03:17:13 AM UTC, original submission:
Hello,
afr_writev_cbk and afr_ftruncate_cbk does not return the stbuf from the first successful child, while many others do (such as afr_chmod_cbk).
this cause vim report following error[1] frequently when you want to save the edit file:
[1] WARNING: The file has been changed since reading it!!!
A trace result in [2], pay attention to the returned st_mtime in two writev.
Thanks.
[2]
2008-01-04 10:58:06 D [trace.c:1410:trace_writev] iothreads: (this=0x61c750, fd=0x2aaaac009210, *vector=0x7fff1aa1e050, count=1, offset=0)
2008-01-04 10:58:06 D [trace.c:189:trace_writev_cbk] iothreads: (this=0x61c750, op_ret=4096, op_errno=107, buf=0x66a588 {st_dev=2064, st_ino=161054
73, st_mode=33188, st_nlink=1, st_uid=0, st_gid=0, st_rdev=0, st_size=12288, st_blksize=4096, st_blocks=24, st_atime=[Jan 04 10:57:44], st_mtime=[Jan
04 10:57:50], st_ctime=[Jan 04 10:57:50]})
[snip]
2008-01-04 10:58:06 D [trace.c:1410:trace_writev] iothreads: (this=0x61c750, fd=0x2aaaac009210, *vector=0x7fff1aa1e050, count=1, offset=0)
2008-01-04 10:58:06 D [trace.c:189:trace_writev_cbk] iothreads: (this=0x61c750, op_ret=4096, op_errno=107, buf=0x66a588 {st_dev=2064, st_ino=480215
07, st_mode=33188, st_nlink=1, st_uid=0, st_gid=0, st_rdev=0, st_size=12288, st_blksize=4096, st_blocks=24, st_atime=[Jan 04 10:57:40], st_mtime=[Jan
04 10:57:46], st_ctime=[Jan 04 10:57:46]})
|