X-Recipient: archive-cygwin@delorie.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.girod@gmail.com>
To: cygwin@cygwin.com
Subject: Re: .#* lock files under X, for files I edit???
In-Reply-To: <24501895.post@talk.nabble.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <23655794.post@talk.nabble.com> <4A157FF5.6030407@cornell.edu> <23656848.post@talk.nabble.com> <4A159713.50303@cornell.edu> <23671375.post@talk.nabble.com> <4A16BEA9.8020608@cornell.edu> <23672879.post@talk.nabble.com> <24494476.post@talk.nabble.com> <24495013.post@talk.nabble.com> <24497846.post@talk.nabble.com> <24501895.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

