[Qemu-devel] Bug in virtio-9p when fstatting an fd referring to a file t
From:
Sassan Panahinejad
Subject:
[Qemu-devel] Bug in virtio-9p when fstatting an fd referring to a file that no longer exists
Date:
Thu, 28 Apr 2011 17:13:09 +0100
It should be possible for guest applications to fstat a file for which they have a valid file descriptor, even if the file has been removed. Demonstrated by the code sample below (fstat reports no such file or directory).
Strangely it seems that reading from a file in this state works fine (and when both are run, the server receives a different fid for each).
On any other filesystem, the code runs correctly. On our 9p filesystem it fails. Many applications (including bash) depend on this working correctly.
I will continue investigating, but any thoughts anyone has on the subject would be appreciated.