My favorite pet bug (2004): Yum mishandles Ctrl-C

Leszek Matok Lam at Lam.pl
Wed Sep 6 18:36:55 UTC 2006


Dnia 06-09-2006, śro o godzinie 20:24 +0200, Ralf Ertzinger napisał(a):
> The problem is not the RPM database, it's the filesystem. As long
> as you do not have a filesystem that can roll back selected changes
> this discussion is rather pointless.
transaction:
echo "mv -f file.bak file" > backlog
mv file file.bak
cp -f file.new file # actual work, this can break
rm -f file.bak backlog

error recovery on next run:
if [ -f backlog ]
	sh backlog
fi

Do you know a file system that can't do this?

Lam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: To jest cz??? listu	podpisana cyfrowo
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20060906/e1700190/attachment.sig>


More information about the fedora-devel-list mailing list