This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: WriteFile() whacks st_atime patch


Corinna,

On Mon, Sep 17, 2001 at 06:37:34PM +0200, Corinna Vinschen wrote:
> since your both patches to set the file time will probably result in a
> performance loss

You are being too gentle, my proposed patches will definitely be a
performance hit.  The only question that remains is how much?

> and since only a few applications have a problem with
> the windows behaviour... what do you think about conditionalize your
> patch using a global flag (e.g. force_unix_ftime_behaviour) which is
> set to FALSE by default?

The above may be a good compromise.  However, this means that one must be
careful that *all* necessary apps are built appropriately.  For example,
the mutt maintainer (currently you) and the procmail maintainer (most
likely me) will have to both link against the proposed setftime.o.
Otherwise, the mailbox access times will not behave Posix-like.
Furthermore, if someone (occasionally) uses an apps not built
appropriately to access/process their mailbox files, then they may get
"transient," unexpected behavior.

At the risk of Chris's wrath...  Um, er, what about a new CYGWIN setting
so that my proposed patches can affect all apps or no apps?  In this
way, users can choose their policy -- strict Posix st_atime compliance
at the expense of performance or vice versa.

Thanks,
Jason

(pressing mutt's "y" from under his desk...)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]