1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-sysadm] changing binrepos
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20changing%20binrepos&In-Reply-To=%3CCA%2BCX%2Bbjh4KT2E6%3D_YG-Fgrkv3sU_SSC1cJSdPEKmGvr3bwv9yg%40mail.gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003735.html">
<LINK REL="Next" HREF="003737.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-sysadm] changing binrepos</H1>
<B>Pascal Terjan</B>
<A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20changing%20binrepos&In-Reply-To=%3CCA%2BCX%2Bbjh4KT2E6%3D_YG-Fgrkv3sU_SSC1cJSdPEKmGvr3bwv9yg%40mail.gmail.com%3E"
TITLE="[Mageia-sysadm] changing binrepos">pterjan at gmail.com
</A><BR>
<I>Fri Jul 15 15:20:50 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="003735.html">[Mageia-sysadm] changing binrepos
</A></li>
<LI>Next message: <A HREF="003737.html">[Mageia-sysadm] changing binrepos
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3736">[ date ]</a>
<a href="thread.html#3736">[ thread ]</a>
<a href="subject.html#3736">[ subject ]</a>
<a href="author.html#3736">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Fri, Jul 15, 2011 at 13:46, Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">mageia at colin.guthr.ie</A>> wrote:
><i> 'Twas brillig, and Sander Lepik at 15/07/11 07:14 did gyre and gimble:
</I>>><i> 15.07.2011 00:32, Colin Guthrie kirjutas:
</I>>>><i>
</I>>>><i> Just to be sure, why not make the file name "sha1sum-size", that way
</I>>>><i> you're massively decreasing the likelihood of an sha1sum clash.
</I>>>><i>
</I>>>><i> Col
</I>>>><i>
</I>>><i> Or %{name}-sha1sum - easy to search by package if needed.
</I>><i>
</I>><i> Nah, because that way, things that share sources (such as different
</I>><i> kernel packages) would not be able to get disk-space (on server side)
</I>><i> saving benefits and also some packages (I presume you intended %{name}
</I>><i> to be the one from the spec?) will have multiple binary sources.
</I>><i>
</I>><i>
</I>><i>
</I>><i> But now I think about it, if 2+ packages do share the same binary, how
</I>><i> do we know it's OK to actually delete the binary from the binrepos? We'd
</I>><i> have to check every single packages sha1.lst file to see if it used
</I>><i> it... that doesn't sound ideal....
</I>
I think <original filename>-<sha1> would be good to avoid both
filename collision and sha1 collision while still sharing files
between packages
Regarding reference counting, I don't know the best way to do it :)
In the original mail Nicolas said:
><i> - when a file is no longer used, it is only removed from sha1.lst, not
</I>><i> removed from the server
</I>><i> - If we want to save space, we can have a script to generate the list of
</I>><i> all used files from all packages, and remove files not in this list
</I></PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003735.html">[Mageia-sysadm] changing binrepos
</A></li>
<LI>Next message: <A HREF="003737.html">[Mageia-sysadm] changing binrepos
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3736">[ date ]</a>
<a href="thread.html#3736">[ thread ]</a>
<a href="subject.html#3736">[ subject ]</a>
<a href="author.html#3736">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>
|