info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: symlinks and locks WAS renaming a Repository


From: Conrad T. Pino
Subject: RE: symlinks and locks WAS renaming a Repository
Date: Thu, 1 Apr 2004 11:55:04 -0800

Hi Larry,

> > Also consider cvs will use repositories identified by symbolic links and
> 
> Unless you're using LockDir= in your $CVSROOT/CVSROOT/config file, in
> which case using symlinks will circumvent the locking and corrupt your
> repository.

I'd like to understand the symlink and locking issue better because right
now I'm not sure I understand why locks will fail.  I would appreciate your
input on the following use cases:

=======================
Case 0, single repository, hard link and no aliasing:

Repository at:

  /usr/home/cvsusr/root

inetd.conf contains:

  cvspserver stream tcp nowait cvsusr.cvsusr /usr/bin/cvs \
    cvs -f -T /var/tmp --allow-root=/usr/home/cvsusr/root pserver

Any problems so far? (Expecting no but please confirm)

=======================
Case 1, single repository, symlink and no aliasing:

Repository at:

  /usr/home/cvsusr/root

Symbolic links at:

  ln -s /usr/home/cvsusr/root /cvsroot

inetd.conf contains:

  cvspserver stream tcp nowait cvsusr.cvsusr /usr/bin/cvs \
    cvs -f -T /var/tmp --allow-root=/cvsroot pserver

Any problems so far?

=======================
Case 2, multiple repository, symlink and no aliasing:

Repository at:

  /usr/home/cvsusr/root
  /usr/home/cvsusr/test

Symbolic links at:

  ln -s /usr/home/cvsusr/root /cvsroot
  ln -s /usr/home/cvsusr/test /cvstest

inetd.conf contains:

  cvspserver stream tcp nowait cvsusr.cvsusr /usr/bin/cvs \
    cvs -f -T /var/tmp --allow-root=/cvsroot \
                       --allow-root=/cvstest pserver

Any problems so far?

=======================
Case 3, single repository, mixed links and with aliasing:

Repository at:

  /usr/home/cvsusr/root

Symbolic links at:

  ln -s /usr/home/cvsusr/root /cvsroot

inetd.conf contains:

  cvspserver stream tcp nowait cvsusr.cvsusr /usr/bin/cvs \
    cvs -f -T /var/tmp --allow-root=/usr/home/cvsusr/root \
                       --allow-root=/cvstest pserver

Any problems so far? (Expecting yes but please confirm)

=======================
Case 4, single repository, only symlinks and with aliasing:

Repository at:

  /usr/home/cvsusr/root

Symbolic links at:

  ln -s /usr/home/cvsusr/root /cvsroot
  ln -s /usr/home/cvsusr/root /cvstest

inetd.conf contains:

  cvspserver stream tcp nowait cvsusr.cvsusr /usr/bin/cvs \
    cvs -f -T /var/tmp --allow-root=/cvsroot \
                       --allow-root=/cvstest pserver

Any problems so far? (Expecting yes but please confirm)

=======================
More questions will follow after learning which are problem
cases.  Thanks in advance.

Conrad





reply via email to

[Prev in Thread] Current Thread [Next in Thread]