I had this happen once too. As I recall, the machine lost power after a cached write and before the data was actually written to disk. The file was zeroed and all its former contents lost. My friend, who had borrowed the computer to write a paper and lost hours of work was very upset.
I switched all my XFS filesystems to something else that day.
I switched all my XFS filesystems to something else that day.