From: "Herbert Euler" <herberteuler@hotmail.com>
To: storm@cua.dk
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: Ido mode on Windows: please turn off cache
Date: Wed, 31 Jan 2007 21:14:31 +0800 [thread overview]
Message-ID: <BAY112-F1978CC2AA64520A8B72405DAA50@phx.gbl> (raw)
In-Reply-To: <m3ps8vz8wq.fsf@kfs-l.imdomain.dk>
I got another idea of dealing with this. Please think about whether
it is appropriate.
I have tested it again to be sure, that if the file system is NTFS the
modification time will be updated, while if the file system is FAT32
it will not. Again, I did not check the FAT file system. If this is
the key to the problem, we can check some other infomation in addition
to the modification time, to determine whether a directory is updated.
The `file-attributes' function returns a list, the third and fourth
element of which are file uid and file gid. These two fields are
different on NTFS and FAT32. Please take a comparison:
(file-attributes "c:/") ;; On FAT32 file system
==> (t 1 0 0 (0 0) (0 0) (0 0) 0 "drwxrwxrwx" nil 0 (7756 . 6145))
(file-attributes "c:/") ;; On NTFS file system
==> (t 1 5 5 (0 0) (0 0) (0 0) 0 "drwxrwxrwx" nil 0 (9440 . 10983))
Note that the uid and gid are different for the two file systems. I
have tested many logical drives, all FAT32 drives come with (0 0), and
all NTFS drives come with (5 5).
What about this idea? If the OS is w32, and if the uid and gid are (0
0), it means reading from FAT32 file system, so the cache should be
disabled; if they are (5 5), it means reading from NTFS file system,
then the cache should be enabled?
Regards,
Guanpeng Xu
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
next prev parent reply other threads:[~2007-01-31 13:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-31 3:36 Ido mode on Windows: please turn off cache Herbert Euler
2007-01-31 4:18 ` Eli Zaretskii
2007-01-31 4:26 ` Herbert Euler
2007-01-31 6:02 ` Herbert Euler
2007-01-31 4:28 ` Herbert Euler
2007-01-31 12:18 ` Kim F. Storm
2007-01-31 13:14 ` Herbert Euler [this message]
2007-01-31 14:31 ` Jason Rumney
2007-01-31 16:07 ` Herbert Euler
2007-01-31 18:30 ` Eli Zaretskii
2007-01-31 18:50 ` Eli Zaretskii
2007-01-31 13:25 ` Herbert Euler
2007-01-31 16:33 ` Kim F. Storm
2007-01-31 7:03 ` Herbert Euler
2007-01-31 18:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY112-F1978CC2AA64520A8B72405DAA50@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=storm@cua.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.