[RFC PATCH 0/3] Implementing dm-snapshots
Samuel Mendoza-Jonas
sam.mj at au1.ibm.com
Mon Apr 27 15:52:46 AEST 2015
These patches allow Petitboot to make device mapper snapshots for any block
device thus preventing any inadvertent writes from reaching the actual disk,
such as performing journal replay on a disk mounted read-only.
I'm sending this out as an RFC so those interested can see how I've chosen to
go about adding the support. As it stands this would work for 90% of use cases,
however I still need to sort out the logic for merging writes back to the
original disk if we *do* intend to make writes, eg. if a GRUB config asks us to
update the saved_entry variable.
Samuel Mendoza-Jonas (3):
talloc_set_destructor workaround
discover: Add support for device-mapper snapshots
discover: Create dm-snapshots for all eligible devices
discover/Makefile.am | 4 +
discover/device-handler.c | 220 +++++++++++++++++++++++++++++++++++++++++++---
discover/device-handler.h | 6 ++
discover/udev.c | 20 ++++-
4 files changed, 237 insertions(+), 13 deletions(-)
--
2.1.0
More information about the Petitboot
mailing list