[PATCH V2 0/3] Implement mergeable device mapper snapshots

Samuel Mendoza-Jonas sam.mj at au1.ibm.com
Fri May 22 15:32:20 AEST 2015


These patches add support for device-mapper snapshots that transparently
guarantee read-only access to disk devices. Explicit write actions such as from
GRUB updates trigger a merge of the snapshot back into the source disk.

This V2 patchset is functionally the same, but includes a number of small fixes
or style changes, most notably;
	- Use 'devmapper' rather than 'dm' names to avoid confusion with libdm
	- Catch a few missing talloc checks and frees
	- Add a small sleep interval when checking merge progress
	- Change target sector types to support partitions >2TB
	- Cleanup some error handling.

This patchset is also now based on "Ensure destroy_device is called on reinit"
instead of the previous workaround.

Samuel Mendoza-Jonas (3):
  discover: Keep track of available ramdisk devices
  discover: Support creation of device-mapper devices
  discover: Mount snapshots for all eligible disk devices

 discover/Makefile.am      |   6 +
 discover/device-handler.c | 179 +++++++++++++--
 discover/device-handler.h |  14 ++
 discover/devmapper.c      | 540 ++++++++++++++++++++++++++++++++++++++++++++++
 discover/devmapper.h      |  11 +
 discover/udev.c           |  20 +-
 6 files changed, 749 insertions(+), 21 deletions(-)
 create mode 100644 discover/devmapper.c
 create mode 100644 discover/devmapper.h

-- 
2.1.0



More information about the Petitboot mailing list