[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: CVS commit failure and lock files (under windows with cygwin)
From: |
David Marshburn |
Subject: |
RE: CVS commit failure and lock files (under windows with cygwin) |
Date: |
Tue, 5 Nov 2002 00:56:29 -0500 (EST) |
To add a data point to the collected experience of CVS over AFS (a friend
discovered the following):
The cvs.exe binary from the last release of WinCVS (1.2.2a?) works just
fine for me to commit to an AFS-mounted "local" repository (you may recall
that I'd had problems, similar to or the same as Seth, when trying to
commit from a few computers to an AFS-mounted repository). I just copied
WinCVS' cvs.exe binary over the one in Cygwin's /usr/bin (after making a
backup of the original). All was dandy after I changed my classpath from
something the Cygwin-CVS expected (/afs/<stuff>) to what WinCVS-CVS
expected (:local:U:\\<stuff>).
(I have to credit Mark Foskey with this discovery, who googled on the
problem and came up with my original question :)
cheers,
-david
On Thu, 12 Sep 2002, Seth Copen Goldstein wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The file does not seem to exist after the failure, so either
> - - it was created, the error occurred, and then it was deleted, or
> - - it was not able to be created.
>
> Not sure how to tell which it is.
>
> - -seth
>
> BTW: Is there a short doc on how to use client/server securely from windows
> (client) to unix (server) and also to use pcl-cvs for all the above?
>
> - ---------------
> address@hidden 7122 Wean Hall
> www.cs.cmu.edu/~seth School of Computer Science
> phone: 412-268-3828 Carnegie Mellon University
> fax: 412-268-4801 Pittsburgh, PA 15213
>
> > -----Original Message-----
> > From: address@hidden [mailto:address@hidden
> > Sent: Thursday, September 12, 2002 12:04 PM
> > To: address@hidden
> > Cc: address@hidden
> > Subject: Re: CVS commit failure and lock files (under windows with
> > cygwin)
> >
> > David Marshburn writes:
> > >
> > > If I may draw this point out slightly (I've had the same problem), can
> > you
> > > tell us what CVS would be doing at the time? In what way does it try
> > > to create this lock file? Is there anything special or different about
> > that?
> > > Any clue as to what would make this fail? I believe (from private
> > > corresopndence) that Seth is using AFS, as am I. This is the only case
> > > I've found in which AFS fails to correctly create a file. What I'm
> > > looking for is any suggestions or guesses as to what may be different
> > > in CVS' case...
> >
> > "Lock file" is a bit of a misnomer in this case -- it's actually the new
> > RCS file. RCS uses the existence of the new file to prevent multiple
> > updates at the same time and thus accurately calls it a lock file. CVS
> > uses the same terminology even though it uses a completely different
> > locking scheme. It does, however, create the file the same way that RCS
> > does so that it will act as a lock against updating the file with RCS
> > and CVS at the same time. (Because of the different locking schemes,
> > however, it is extremely dangerous to use RCS on a CVS file. Since RCS
> > doesn't honor CVS's locks, it's possible for CVS to wipe out RCS's
> > changes.)
> >
> > What makes this error interesting is that *creating* the file is
> > apparently successful; it's writing to it afterwards that fails
> > somewhere along the way. If would be interesting to know from one of
> > you that has the problem whether the file is actually created and, if
> > so, what size it is. The relevant code is rcs_internal_lockfile() and
> > rcs_internal_unlockfile() in src/rcs.c My guess is that the problem is
> > that the file is opened for write, but the permissions are set to read
> > only -- that should allow the opened file to be written to but not allow
> > any subsequent opens to write to it, but perhaps that doesn't work right
> > in AFS. Alternatively, the permissions of the open file are set
> > immediately after opening it (provided your system has the fchmod()
> > function); perhaps that has some unusual affect in AFS.
> >
> > -Larry Jones
> >
> > I stand FIRM in my belief of what's right! I REFUSE to
> > compromise my principles! -- Calvin
> >
> >
> > _______________________________________________
> > Info-cvs mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/info-cvs
>
> -----BEGIN PGP SIGNATURE-----
> Version: 6.5.8ckt http://www.ipgpp.com/
>
> iQA/AwUBPYDHOdqJMFyynoRZEQIAzACaA7ooTdu0Awek61rNirBK7fGmXqUAoPCk
> D8wWsTJ0/iRAMORn59srVnOU
> =/w03
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: CVS commit failure and lock files (under windows with cygwin),
David Marshburn <=