Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2024 09:48:01 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Jessica Clarke <jrtc27@freebsd.org>, dev-commits-src-main@freebsd.org
Cc:        "cperciva@freebsd.org" <cperciva@FreeBSD.org>
Subject:   Re: git: a1bff97300ab - main - release: Don't reuse disc1/bootonly directories
Message-ID:  <73727045-7276-465F-9567-32C7A4FDDAE0@yahoo.com>
References:  <73727045-7276-465F-9567-32C7A4FDDAE0.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jessica Clarke <jrtc27_at_freebsd.org> wrote on
Date: Wed, 10 Apr 2024 05:18:23 UTC :

> On 10 Apr 2024, at 04:29, Colin Percival <cperciva@FreeBSD.org> wrote:
> >=20
> > . . .
> >=20
> > +disc1-disc1 disc1-memstick: disc1
> > + mkdir ${.TARGET}
> > + tar -cf- -C disc1 . | tar -xf- -C ${.TARGET}
>=20
> What=E2=80=99s wrong with cp -a?

A possibility from "man cp":

QUOTE
           Note that cp copies hard linked files as separate files.  If =
you
           need to preserve hard links, consider using tar(1), cpio(1), =
or
           pax(1) instead.
END QUOTE

cp should be avoided if there might be hard links involved on the source =
materials
that should be preserved in the destination material produced.

>=20
> Besides, shouldn=E2=80=99t this use -p if using tar?


(I'm not commenting on the above.)

>=20
> And -f- is the same as nothing.

"man tar" reports the deafult as /dev/sa0 on FreeBSD:

QUOTE
     -f file, --file file
             Read the archive from or write the archive to the specified =
file.
             The filename can be - for standard input or standard =
output.  The
             default varies by system; on FreeBSD, the default is =
/dev/sa0; on
             Linux, the default is /dev/st0.
END QUOTE

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73727045-7276-465F-9567-32C7A4FDDAE0>