patch to allow touch to work on HPFS (and others, maybe??)

Corinna Vinschen vinschen@redhat.com
Tue Feb 8 09:10:00 GMT 2005


On Feb  7 14:37, Mark Paulus wrote:
> So, what it really seems to boil down to is 
> for those filesystems that support doing timestamp 
> updating via FILE_WRITE_ATTRIBUTES (NTFS systems)
> we should use FILE_WRITE_ATTRIBUTES, and for those that
> don't (HPFS, etc), they should use GENERIC_WRITE?

Yes.  I'm wondering though, if that's the filesystem or OS/2 which
choke on FILE_WRITE_ATTRIBUTES.

> Unfortunately, during my brief perusal of MSDN, I didn't see
> an easy way to determine the file system type.  

Have a look into path.cc, fs_info::update ().  Test the filesystem
name in fs_info::update and add a flag to fs_info which tells us that
FILE_WRITE_ATTRIBUTES is supported (which is valid for NTFS and FAT,
btw.).


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list