delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/15/05:18:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <24494476.post@talk.nabble.com>
Date: Wed, 15 Jul 2009 02:18:29 -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: <23672879.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>
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


Marc Girod wrote:
> 
> Thanks. I'll try that.
> 
That was: 'CYGWIN=winsymlinks tty'
The result is not fully satisfying.
E.g.:

  lrwxrwxrwx  1 emagiro EEI-ATusers    45 Jul 14 11:57 .#common.mk ->
emagiro AT EV0016D4A35054 DOT eemea DOT ericsson DOT se DOT 4708

in a dired buffer, and which I cannot remove:

makesystem> rm -f .\#*
rm: cannot remove `.#common.mk': Permission denied

The process is still running indeed, but the lock/link doesn't
go away when I kill the buffer, or even exit emacs, as shown
with this one (elsewhere):

bin> ls -la .#select_config.pl
lrwxrwxrwx 1 emagiro EEI-ATusers 45 Jun 26 16:09 .#select_config.pl ->
emagiro AT EV0016D4A35054 DOT eemea DOT ericsson DOT se DOT 4620

This process has gone long ago!
The reason is the same I guess as the one for which I cannot 
remove the link from the command line, and has to do either
with the fact the file system is CIFS mounted from a NetApp
filer, or with the fact this is not its real name.
I can access this filesystem from unix as well, and there, it 
looks different, and I can remove it:

makesystem> ll .\#*
-r-xr-xr-x   1 emagiro  at1          299 Jul 14 11:57 .#common.mk.lnk
makesystem> rm -f .\#*
makesystem> ll .\#*
.#*: No such file or directory

Gone now from the cygwin view as well.
But I understand this is the *old* symlink implementation,
as a file with a funny name, instead of as a reall sym link,
incurring the performance penalties, etc.

So, my next move now will be to set a find-file-hook to 
check whether I am in a ClearCase view, and if so, to
make purify_flag buffer-local and set it to t.

I'll report my results...

Marc
-- 
View this message in context: http://www.nabble.com/.-*-lock-files-under-X%2C-for-files-I-edit----tp23655794p24494476.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