• Re: [gentoo-user] Re: Shared distfiles directory between different virt

    From Filip Kobierski@21:1/5 to All on Wed Nov 6 19:00:02 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ---------------------7a55f263fefc0294f02a32c831ee5562 Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain; charset=utf-8

    AFAIR creating a file (adding an entry to a dir's list) is an atomic operation so that problem also is solved.-------- Original Message --------On 11/6/24 18:39, whiteman808 <whiteman808@paraboletancza.org> wrote:> What in case when two lock files
    are being created at the same time? How> can I prevent in this case emerge fail?> > On 11/6/24 18:24, Holger Hoffstätte wrote:> > On 2024-11-06 18:16, whiteman808 wrote:> >> How can I prevent portage from overwriting the same source files in>
    the distfiles directory and possible checksum mismatches caused by> >> that behavior if I tell emerge to update @world simultaneously on> >> these different binary package servers?> >> > portage uses a lockfile for every download, so the
    problem does not exist.> >> > -h> >> > >

    ---------------------7a55f263fefc0294f02a32c831ee5562--
    -----BEGIN PGP SIGNATURE-----
    Version: ProtonMail

    wnUEARYIACcFAmcrrQ0JEDzP7coSZcYZFiEE0TnSlimggnBf+TgfPM/tyhJl xhkAAL6XAQDVuD6EBIdhOyvKGnyY7HYrrji/ig2X+Y2ylmLc++LvswD+PRSS GGe466PSt1rN7WzO4N1q3K/T/4YJrH8CLv5aOgM=
    =uFBd
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From whiteman808@21:1/5 to All on Wed Nov 6 18:40:01 2024
    What in case when two lock files are being created at the same time? How
    can I prevent in this case emerge fail?

    On 11/6/24 18:24, Holger Hoffstätte wrote:
    On 2024-11-06 18:16, whiteman808 wrote:
    How can I prevent portage from overwriting the same source files in
    the distfiles directory and possible checksum mismatches caused by
    that behavior if I tell emerge to update @world simultaneously on
    these different binary package servers?

    portage uses a lockfile for every download, so the problem does not exist.

    -h


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to All on Thu Nov 7 01:40:01 2024
    On 11/6/24 11:39, whiteman808 wrote:
    What in case when two lock files are being created at the same time? How
    can I prevent in this case emerge fail?

    Have you actually experienced this type of failure?

    Or are you just thinking about worst case?

    I've been sharing distfiles between multiple systems over NFS for years
    and not had a problem. Granted, usually the systems aren't emerging at
    the same time.



    --
    Grant. . . .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)