From: | Zac Medico <zmedico@×××××.com> |
---|---|
To: | gentoo-portage-dev@l.g.o |
Subject: | [gentoo-portage-dev] [gentoo-dev-portage] [PATCH] prevent world file corruption by writing atomically |
Date: | Tue, 24 Jan 2006 08:44:47 |
Message-Id: | 43D5E9F7.6040308@gmail.com |
1 | -----BEGIN PGP SIGNED MESSAGE----- |
2 | Hash: SHA1 |
3 | |
4 | Hi all, |
5 | |
6 | There is dangerous handling of world file updates throughout portage. The attached patch wraps all world file updates in a write_atomic() function which is designed to prevent interprocess interference and prevent corruption when an 'out of space' error occurs. Brian pointed out that portage_util.writedict() already does a similar routine, but it is designed exclusively to write a dictionary object. |
7 | |
8 | Zac |
9 | -----BEGIN PGP SIGNATURE----- |
10 | Version: GnuPG v1.4.2 (GNU/Linux) |
11 | |
12 | iD8DBQFD1en2/ejvha5XGaMRAiWdAJ9z8qD4NAO5wj7kYnZOa8qSS1YTTACaAlFz |
13 | uBy7olGkiAlYweTNv1iu0OY= |
14 | =CJPG |
15 | -----END PGP SIGNATURE----- |
File name | MIME type |
---|---|
world_write_atomic.patch | text/x-patch |
Subject | Author |
---|---|
Re: [gentoo-portage-dev] [gentoo-dev-portage] [PATCH] prevent world file corruption by writing atomically | Brian Harring <ferringb@g.o> |