Hi list,
I come across the same problem in
http://www.aleph1.co.uk/lurker/message/20071008.015825.d64e796b.pt.html
But If I don't use mmap write, fsx will succeed all the time. This is different
from the email thread above.
I also add
if (ivalid & ATTR_SIZE && inode->i_size > attr->ia_size)
vmtruncate(inode, attr->ia_size);
in yaffs_setattr(), result is the same.
IMHO inode_setattr() in yaffs_setattr() will call vmtruncate()
Any advice for resolve this bug?
Thanks,
Jisheng