1 |
On 07/07/2018 11:53 PM, Michał Górny wrote: |
2 |
> Dnia 8 lipca 2018 08:08:31 CEST, Zac Medico <zmedico@g.o> napisał(a): |
3 |
>> Please review. |
4 |
>> |
5 |
>> Title: Portage rsync hardlink support |
6 |
>> Author: Zac Medico <zmedico@g.o> |
7 |
>> Posted: 2018-07-11 |
8 |
>> Revision: 1 |
9 |
>> News-Item-Format: 2.0 |
10 |
>> Display-If-Installed: sys-apps/portage |
11 |
>> |
12 |
>> For users of the rsync tree, beginning with sys-apps/portage-2.3.42, |
13 |
>> the default behavior for sync operations will use hardlinks in order |
14 |
>> to ensure that a repository remains in a valid state if something |
15 |
>> goes wrong [1]. For example, if signature verification fails during a |
16 |
>> sync operation, the new hardlink behavior will preserve the previous |
17 |
>> state of the repository. |
18 |
>> |
19 |
>> The new behavior may conflict with configurations that restrict the |
20 |
>> use of hardlinks, such as overlay filesystems. Therefore, users will |
21 |
>> have to set "sync-allow-hardlinks = no" in repos.conf if they have |
22 |
>> a configuration that restricts the use of hardlinks, but this should |
23 |
>> not be very common: |
24 |
>> |
25 |
>> [DEFAULT] |
26 |
>> sync-allow-hardlinks = no |
27 |
>> |
28 |
>> [1] https://bugs.gentoo.org/660410 sys-apps/portage: use rsync |
29 |
>> --link-dest to implement atomic repository updates (and abort if |
30 |
>> signature verification fails) |
31 |
> |
32 |
> Is safe git syncing implemented already? If not, maybe finish it first and cover both with a single news item. Git is going to be more efficient here, so people may want to learn they have an alternative. |
33 |
|
34 |
Yeah there's already a patch for git sync [1] but I'd rather not make |
35 |
this news item more complicated than it needs to be. I wouldn't have |
36 |
bothered with a news item except that I want to give people some warning |
37 |
in case they are using overlayfs [2]. I think the efficiency difference |
38 |
between rsync and git here are pretty negligible for most people. |
39 |
|
40 |
[1] https://bugs.gentoo.org/660372 |
41 |
[2] |
42 |
https://www.brunsware.de/blog/gentoo/portage-tree-squashfs-overlayfs.html |
43 |
-- |
44 |
Thanks, |
45 |
Zac |