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

Re: [MiNT] symlinks and hostfs



Hello!

I wonder why there are more timestamp issues with Fstat64() than with
Fxattr()... Anyway, I'm not familiar with those APIs.

because Fxattr has 16-bit local time while Fstat64 32-bit UTC?

From my viewpoint there is no problem at all.

The easiest way for the xfs is just to work in UTC and return UTC timestamps. The kernel do all conversion calculations for Fxattr() and Fstat64(), the xfs is not affected at all. The only thing the xfs must do is to set the FS_EXT_3 flag (e.g. returning UTC timestamps and implement stat64).

Just take a look into the ext2 xfs (e_getxattr() and e_stat64() inside ext2sys.c).

http://sparemint.org/cgi-bin/cvsweb/freemint/sys/xfs/ext2fs/ext2sys.c?rev=1.16&content-type=text/x-cvsweb-markup

The big advantage too: no need for any time conversion as stat() work with UTC timestamps too.

The kernel support this since 1.15.4 ...

And even older kernels can easily supported. The ext2 implement the Fxattr() if working not in UTC too (the else code path).


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------
http://sparemint.org/
e-Mail: fnaumann@boerde.de