From: Zac Medico <zmedico@gentoo.org>
To: Zac Medico <zmedico@gentoo.org>,
gentoo development <gentoo-dev@lists.gentoo.org>
Subject: [gentoo-dev] News Item: Portage rsync hardlink support [v2]
Date: Sun, 8 Jul 2018 20:21:57 -0700 [thread overview]
Message-ID: <4559b15f-0d61-d94e-1808-5acee6c563a9@gentoo.org> (raw)
In-Reply-To: <cd138ee3-353c-efa1-e9ab-d9a97548f18b@gentoo.org>
[-- Attachment #1.1: Type: text/plain, Size: 1543 bytes --]
In v2 there's a suggestion to use git for better efficiency than rsync,
as requested by Michał Górny:
Title: Portage rsync hardlink support
Author: Zac Medico <zmedico@gentoo.org>
Posted: 2018-07-11
Revision: 1
News-Item-Format: 2.0
Display-If-Installed: sys-apps/portage
For users of the rsync tree, beginning with sys-apps/portage-2.3.42,
the default behavior for sync operations will use hardlinks in order
to ensure that a repository remains in a valid state if something
goes wrong [1]. For example, if signature verification fails during a
sync operation, the new hardlink behavior will preserve the previous
state of the repository.
The new behavior may conflict with configurations that restrict the
use of hardlinks, such as overlay filesystems. Therefore, users will
have to set "sync-allow-hardlinks = no" in repos.conf if they have
a configuration that restricts the use of hardlinks, but this should
not be very common:
[DEFAULT]
sync-allow-hardlinks = no
Note that it possible to sync more efficiently using git [2] instead
of rsync, though git consumes an increasing amount of disk space over
time because shallow pull is currently not supported [3].
[1] https://bugs.gentoo.org/660410 sys-apps/portage: use rsync
--link-dest to implement atomic repository updates (and abort if
signature verification fails)
[2] https://wiki.gentoo.org/wiki/Portage_Security#git-mirror_repo
[3] https://bugs.gentoo.org/552814 sync using git pull --depth=1 by
default
--
Thanks,
Zac
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]
prev parent reply other threads:[~2018-07-09 3:22 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-08 6:08 [gentoo-dev] News Item: Portage rsync hardlink support Zac Medico
2018-07-08 6:53 ` Michał Górny
2018-07-08 7:14 ` Zac Medico
2018-07-08 9:15 ` Michał Górny
2018-07-08 9:21 ` Zac Medico
2018-07-08 9:30 ` M. J. Everitt
2018-07-08 13:02 ` Kristian Fiskerstrand
2018-07-08 13:56 ` Michał Górny
2018-07-08 18:04 ` Zac Medico
2018-07-08 18:42 ` Michał Górny
2018-07-08 18:57 ` Zac Medico
2018-07-08 20:08 ` Michał Górny
2018-07-08 20:18 ` Zac Medico
2018-07-08 21:11 ` Zac Medico
2018-07-08 21:18 ` Michał Górny
2018-07-08 21:38 ` Zac Medico
2018-07-08 21:50 ` Aaron W. Swenson
2018-07-08 21:59 ` Zac Medico
2018-07-09 5:17 ` Zac Medico
2018-07-09 8:04 ` Kristian Fiskerstrand
2018-07-08 22:00 ` Rich Freeman
2018-07-08 17:34 ` Rich Freeman
2018-07-08 17:43 ` M. J. Everitt
2018-07-08 17:50 ` Kristian Fiskerstrand
2018-07-08 18:10 ` Rich Freeman
2018-07-08 18:31 ` Kristian Fiskerstrand
2018-07-08 19:00 ` Rich Freeman
2018-07-08 9:28 ` Toralf Förster
2018-07-08 9:34 ` Zac Medico
2018-07-08 13:00 ` Kristian Fiskerstrand
2018-07-09 3:21 ` Zac Medico [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4559b15f-0d61-d94e-1808-5acee6c563a9@gentoo.org \
--to=zmedico@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox