delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/15/14:09:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_63,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <24503085.post@talk.nabble.com>
Date: Wed, 15 Jul 2009 11:08:41 -0700 (PDT)
From: Marc Girod <marc DOT girod AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: .#* lock files under X, for files I edit???
In-Reply-To: <24501895.post@talk.nabble.com>
MIME-Version: 1.0
References: <23655794 DOT post AT talk DOT nabble DOT com> <4A157FF5 DOT 6030407 AT cornell DOT edu> <23656848 DOT post AT talk DOT nabble DOT com> <4A159713 DOT 50303 AT cornell DOT edu> <23671375 DOT post AT talk DOT nabble DOT com> <4A16BEA9 DOT 8020608 AT cornell DOT edu> <23672879 DOT post AT talk DOT nabble DOT com> <24494476 DOT post AT talk DOT nabble DOT com> <24495013 DOT post AT talk DOT nabble DOT com> <24497846 DOT post AT talk DOT nabble DOT com> <24501895 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


Eric Blake wrote:
> 
>>	(set (make-local-variable 'purify_flag) t))))
> 
> Setting purify-flag wasn't working for me (emacs gave a message
> about an assertion failure).
> 
Huh? Nothing like that here.
In fact, it works...
Wait:
- I still have the 'CYGWIN=winsymlinks' setting --although unsetting it
doesn't affect
- there was this typo on purify_flag --but I assume you saw it: dash, not
underscore


Eric Blake wrote:
> 
> Rather, it seems that the REAL problem is that cygwin1.dll cannot
> recognize attempts to create symlinks on the clearcase MVFS file system.
> 
OK.
However, it is and was able to create something.
My problem has been that it wasn't able to remove them.


Eric Blake wrote:
> 
> Maybe we should be trying to change cygwin to cause
> symlink() to fail with a proper errno on MVFS, and then
> revisit the emacs side of the equation to see how emacs
> handles failure to create a symlink when errno is ENOSYS
> (or whatever errno cygwin uses).  Or maybe it is just
> a matter of detecting that if the file system does not
> support DOS attributes (which are essential in creating
> new-style symlinks), that an old-style symlink must be
> created on that filesystem.
> 

OK again. Now you are already much deeper than I ever
was in the causes.
The MVFS doesn't support DOS attributes?
I have no clue about that.
How may I check this? Interesting...

makesystem> type volinfo
bash: type: volinfo: not found
makesystem> cygcheck -p volinfo
Found 0 matches for volinfo.
makesystem> df -T .
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
X:         unknown    81920000  30720000  51200000  38% /cygdrive/x

Note: I am one version behind with cygwin: 1.7.0-50

makesystem> touch foo
makesystem> ln -s foo bar
makesystem> readlink bar || echo $?
foo
makesystem> file bar
bar: symbolic link to `foo'
makesystem> ll bar
lrwxrwxrwx 1 emagiro EEI-ATusers 3 Jul 15 18:56 bar -> foo
makesystem> rm bar
rm: cannot remove `bar': Permission denied
makesystem> ct pwv
Working directory view: emagiro_86
Set view: emagiro_86
makesystem> export CYGWIN=tty
makesystem> ln -s foo zoo
makesystem> readlink zoo || echo $?
1
makesystem> ll zoo
-rw-r--r-- 1 emagiro EEI-ATusers 20 Jul 15 18:58 zoo
makesystem> file zoo
zoo: data
makesystem> od -c zoo
0000000   !   <   s   y   m   l   i   n   k   > 377 376   f  \0   o  \0
0000020   o  \0  \0  \0
0000024
makesystem> rm zoo
makesystem> 

I confirm that my find-file-hook works.
I didn't want to restart my emacs, but I tried with:

(setenv "CYGWIN" "tty")
"tty"

in the *scratch* buffer, and opening an existing checked-out file.
No lock created.

Marc
-- 
View this message in context: http://www.nabble.com/.-*-lock-files-under-X%2C-for-files-I-edit----tp23655794p24503085.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019