[PATCH 1 of 5] util: add filestat class to detect ambiguity of file stat

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Fri Jun 3 06:45:39 EDT 2016


At Tue, 24 May 2016 15:21:29 -0400,
timeless wrote:
> 
> FUJIWARA Katsunori wrote:
> > BTW, _stat() C runtime library family can't get valid ctime on FAT
> > (maybe, difference of internal implementation ?)
> 
> FAT12/FAT16 don't have those structures, and thus anything compiled to
> the c api couldn't get a value, and thus the api doesn't give values.
> 
> VFAT added these features, but you can't break backwards compat by
> changing an api, so, you have to make VFAT aware programs use a new
> api.
> 
> https://www.win.tue.nl/~aeb/linux/fs/fat/fat-1.html
> 

Thank you for information !

We can assume that ctime is valid even on FAT12/FAT16 if we use hg
with below, can't we ?

  - VFAT ready Windows (= Windows95 or later), and

  - Python, which uses recent API like GetFileInformationByHandle() to
    fill st_ctime field of file stat

----------------------------------------------------------------------
[FUJIWARA Katsunori]                             foozy at lares.dti.ne.jp


More information about the Mercurial-devel mailing list