[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fcntl FSTAT on TOSFS



Hi,

somebody in the MausNet mentioned that Fcntl FSTAT returns thew wrong
values on an open file that was written to on TOSFS. The problem seems
to be that tos_write invalidates the tindex, instead of updating it
with the number of bytes written. Therefore, getxattr calls Fsfirst
of the old GEMDOS...

The change seems to be easy, but it is some time ago that I've done
kernel changes. Besides, I currently have no GCC installed and I don't
think that the current kernel compiles OK with PureC (or does it?).

The change for tos_write would be: if the TOS Fwrite call returns 0 or
a positive value, update the file size in the tindex (and maybe
timestamps). Otherwise invalidate the tindex.

Any volunteers?

Regards, jr