Subject: Re: File operations speed-up
From: [email-masked] (Chris Schumann)

18 Mar 1997 12:38:14 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===_1997Mar18.074816.1839.487459===_"
Original-To: [email-masked] (Sergey Okhapkin)
Original-Cc: [email-masked] ('Gnu-Win32')
X-Conversion-ID: <PU-NOTES.2231.858692896.9269>
X-Mailer: Lotus Notes via PostalUnion/SMTP for Windows NT
Original-Sender: [email-masked]

--===_1997Mar18.074816.1839.487459===_
Content-Type: text/plain; charset="US-ASCII"

Isn't this useless for those who use backup software that
uses the archive bit to indicate whether a file has been
archived?

ChrisS

	Sergey Okhapkin <sos @ prospect.com.ru> 
	03/17/97 08:03 PM
To: 'Gnu-Win32' <gnu-win32 @ cygnus.com> @ SMTP
cc:  
Subject: File operations speed-up

Hi!

This patch increases the speed of stat/lstat calls dramatically. The trick 
is simple. Cygwin's stat call implementation reads the beginning of stated 
file to look for a "magic cookie" to define "executable" and "symlink" 
attributes of a file. With this patch reading is performed only if file 
have "archive" bit cleared. All ordinary files (not executables/symlinks) 
have this bit set. After applying this patch You have to "chmod +x file" on 
all executables/symlinks. I made a "chmod +x *" on directories with 
binaries. Later I'll write a special utility "fssync" to examine all files 
in a given directory tree and to set archive bit according to file magic 
cookie. Compare the time of "du ." on cygwin's root without and with this 
patch :-)

--
Sergey Okhapkin
Moscow, Russia
Looking for a job.

--uuencoded file (archive.diff) attached...

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".

--===_1997Mar18.074816.1839.487459===_
Content-Type: application/octet-stream; name="archive.diff"
Content-Transfer-Encoding: base64

--===_1997Mar18.074816.1839.487459===_--
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".