Hi. I want to speed-up access to Google Drive from Cygwin and I want to disable 
ReadFile when files are statted.

I did the following:

mkdir /cygnotexec
mount -obind,notexec "/cygdrive/c/ClusterStorage/gdrive/blahb...@gmail.com" 
"/cygnotexec/basini...@gmail.com"
mount -obind,notexec "/cygdrive/c/ClusterStorage/gdrive/blahb...@gmail.com" 
"/cygdrive/c/ClusterStorage/gdrive/basini...@gmail.com"

Never mind "C:\ClusterStorage\": it's a global antivirus exception maintained 
by my company. This is why I have configured Google Drive to not use g:\

So when I bind mount to a new location and do 'stat *' there, the SysInternals 
procmon shows no "ReadFile" calls, but if I repeat that in the original 
location it shows "ReadFile" for every file.

`mount` prints that "notexec" is enabled at both, but it's only effective in 
the new location.

Also, `df` sees that the mount is different and prints the available space for 
Google Drive correctly, but Cygwin doesn't treat it as NFS and doesn't imply 
"notexec". Should it?

$ mount
C:/ClusterStorage/gdrive/blahb...@gmail.com on 
/cygdrive/c/ClusterStorage/gdrive/blahb...@gmail.com type vfat 
(binary,notexec,user,bind)
C:/ClusterStorage/gdrive/blahb...@gmail.com on /cygnotexec/blahb...@gmail.com 
type vfat (binary,notexec,user,bind)





-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to