Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 1997 21:54:19 +1000
From:      David Dawes <dawes@rf900.physics.usyd.edu.au>
To:        hubs@freebsd.org
Subject:   mirroring nits
Message-ID:  <19970429215419.40558@rf900.physics.usyd.edu.au>

next in thread | raw e-mail | index | archive | help
[I'm not sure if this is the right place to mention things like this.  If
it isn't can someone tell me what is?]

I've been getting some errors/warnings from mirror when mirroring
the FreeBSD area on wcarchive (ftp.freebsd.org).  Some of these are
related to /pub/FreeBSD now being split over more than one partition,
and the way symbolic links are used.

Since /pub/FreeBSD is split over more than one partition, it seems that
a reasonable way to do the mirroring is per-subdirectory of /pub/FreeBSD
(which is how I've always been doing it -- mostly because I need to be
selective about what I mirror due to local disk space restrictions).
For this to work best, all symlinks in subdirs of /pub/FreeBSD shouldn't
point to areas outside /pub/FreeBSD, otherwise mirror will complain:

package=22releng ftp.cdrom.com:/pub/FreeBSD/2.2-970422-RELENG
Not symlinking XF8632 -> ../../../.16/FreeBSD/XFree86/2.2-RELEASE
Not symlinking packages -> ../../../.16/FreeBSD/packages-2.2

package=distfiles ftp.cdrom.com:/pub/FreeBSD/distfiles
Not symlinking LOCAL_PORTS -> ../../../.3/FreeBSD/LOCAL_PORTS

The main /pub/FreeBSD directory is physically located at /.16/FreeBSD/,
and the overflow is in /.3/FreeBSD/.  Could I suggest that there be a
symlink in /.16/FreeBSD pointing to each entry in /.3/FreeBSD and
vice-versa?  This way, symlinks with relative paths that don't go above
the "/pub/FreeBSD" level could be used to access any directory from
either partition.  This will make cd ../../.... work as expected, and
will fix the mirror problems.  (FWIW, this is what I do on
ftp.au.freebsd.org, where /pub/FreeBSD has been split over two partitions
for a long time.  I did this precisely so that the symlinks as they
appear on ftp.freebsd.org will always work regardless of how I've split
the directories over the two partitions.  Having working local loopback
mounts would perhaps be a cleaner way of dealing with this.)

With this change, the above problems would be dealt with by having:

  /.3/FreeBSD/XFree86 -> ../../.16/FreeBSD/XFree86
  /.3/FreeBSD/packages-2.2 -> ../../.16/FreeBSD/packages-2.2

Then:

  /pub/FreeBSD/2.2-970422-RELENG/XF8632 -> ../XFree86/2.2-RELEASE
  /pub/FreeBSD/2.2-970422-RELENG/packages -> ../packages-2.2

Similarly, adding:

  /.16/FreeBSD/LOCAL_PORTS -> ../../.3/FreeBSD/LOCAL_PORTS

and:

  /pub/FreeBSD/distfiles/LOCAL_PORTS -> ../LOCAL_PORTS



This last one brings me to another issue.  The LOCAL_PORTS directory
has a lot of overlap with the main distfiles directory (so much that I
can't fit it on ftp.au.freebsd.org with the overlap, but could do so
comfortably if the overlap was eliminated).  Should there be any overlap,
or should LOCAL_PORTS simply be a symlink to ".", with everything
in the main distfiles directory, or should the overlapping files be removed
from the top level distfiles directory?


One final error I'm getting from mirror is related to the lack of public
read permission for one file:

package=i18n ftp.cdrom.com:/pub/FreeBSD/I18N
Failure on 'RETR docs/ja_JP.euc/2.2.1/network_device.hlp' command
Failed to get docs/ja_JP.euc/2.2.1/network_device.hlp: 550 docs/ja_JP.euc/2.2.1/network_device.hlp: Permission denied.
Failed to get file 550 docs/ja_JP.euc/2.2.1/network_device.hlp: Permission denied.

Could someone please fix this?

David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970429215419.40558>