[Yum-devel] [PATCH] add the btrfs-snapshot plugin to yum-utils

Josef Bacik josef at toxicpanda.com
Wed Dec 9 22:14:23 UTC 2009


Hello,

This is my first yum plugin and maybe my second time writing python,
so any comments would be greatly appreciated.  This plugin simply
takes any directory that a package is going to mess with that belongs
to a btrfs filesystem while updating/removing the package and takes a
snapshot of that btrfs filesystem.  The idea here is that if something
catastrophic goes wrong, we can always boot into an older snapshot and
try and pick up the pieces.  I've tested this plugin on my box with a
simple package removal and the resulting snapshot is clean, the rpmdb
is good and everything is kosher.  Thanks,

Josef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: btrfs-snapshot.patch
Type: text/x-patch
Size: 6696 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20091209/36e938c6/attachment.bin>


More information about the Yum-devel mailing list