From nobody Wed Apr 10 16:57:57 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VF8Cl50Zzz5HQy9 for ; Wed, 10 Apr 2024 16:58:11 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VF8Cl38gKz49T9 for ; Wed, 10 Apr 2024 16:58:11 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-416c4767b07so7673375e9.0 for ; Wed, 10 Apr 2024 09:58:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712768289; x=1713373089; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pilDUuRWOu1ZT2NR0D3jvOJ+MlqlKQaOkmQUrGt5HgI=; b=e+4fY8bM/yFjsv1gE1mG62NhWlnlVf+QptlOKq4o2KlkPXRCojsU7DzcwlbfbBrj/t zX7L9gcr9Kv59hLl82jQ93eHA63z+/ouc4qsE67Os4nSjrxW13jMxvaDaQonIaEs13FA DnXDFlw6lvByueC7W/y+JHLuprplZSmTrO55TTuhiW09vV6Im7RycnFRaUdzC6WJtdvG RUuaFvVgSUC3JPgfypuhv7Rad+uLCppIpbyTVjpLm8HRj2IXXVXBK4zLZ2/TBF30fn0J 0zTSCTa+rCKFYoXN8w0D+vEJggs7KcwhnrenlKp7zek4iRJXD/x7N4Etm2egyK6OdlQt imng== X-Gm-Message-State: AOJu0YzMgtenDo32U5M8OI0A9iBdXmkuu42dzOEQFdaKivmebcGJLYlT OMpfQvAXW8ZkWL4MMua6w8kymTP2AvHNw5DJRpYP9JNq02PIa/XR2Y//0U8b9GE= X-Google-Smtp-Source: AGHT+IHtqQNR0bMjrAjw+a8DNXO6cj3yND5tPpb4YfR9rNNSMa3UvuUVNl8X7NniS53hzc42pA1jVA== X-Received: by 2002:a7b:ca57:0:b0:414:8c5:42ce with SMTP id m23-20020a7bca57000000b0041408c542cemr2509538wml.19.1712768289491; Wed, 10 Apr 2024 09:58:09 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id m18-20020a05600c3b1200b0041668162b45sm2852391wms.26.2024.04.10.09.58.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2024 09:58:09 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: dev-commits-src-main+owner@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: git: a1bff97300ab - main - release: Don't reuse disc1/bootonly directories From: Jessica Clarke In-Reply-To: <73727045-7276-465F-9567-32C7A4FDDAE0@yahoo.com> Date: Wed, 10 Apr 2024 17:57:57 +0100 Cc: dev-commits-src-main@freebsd.org, "cperciva@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <2AA8E587-7ED4-434B-AE5A-64CB021A55F9@freebsd.org> References: <73727045-7276-465F-9567-32C7A4FDDAE0.ref@yahoo.com> <73727045-7276-465F-9567-32C7A4FDDAE0@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3774.200.91.1.1) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4VF8Cl38gKz49T9 On 10 Apr 2024, at 17:48, Mark Millard wrote: >=20 > Jessica Clarke wrote on > Date: Wed, 10 Apr 2024 05:18:23 UTC : >=20 >> On 10 Apr 2024, at 04:29, Colin Percival = 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? >=20 > A possibility from "man cp": >=20 > 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 >=20 > cp should be avoided if there might be hard links involved on the = source materials > that should be preserved in the destination material produced. Fair enough then. >> Besides, shouldn=E2=80=99t this use -p if using tar? >=20 >=20 > (I'm not commenting on the above.) >=20 >>=20 >> And -f- is the same as nothing. >=20 > "man tar" reports the deafult as /dev/sa0 on FreeBSD: >=20 > 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 I dug some more, and the documentation is incomplete: * If TAPE is set in the environment it will use that. * Otherwise, if _PATH_DEFTAPE (the default documented there) can be accessed per access(2) it will use that. * Otherwise it will use stdin/stdout. Since most people don=E2=80=99t set TAPE, nor do they have a tape device present, this effectively means that no -f means -f -, but technically one should not rely on this. So TIL. Jess