~wesley-wiedenmeier/curtin/reporting-cleanup-rebase

Viewing all changes in revision 376.

  • Committer: Ryan Harper
  • Date: 2016-04-04 20:12:01 UTC
  • Revision ID: ryan.harper@canonical.com-20160404201201-k0i6u1oq5c2ejybl
block: wipe_volume improvements
  
- move wipe_volume, find_sysfs_path, from block_meta to block
- improve wipe_volume:
  - do not shell out for 'dd' and ignore errors
  - add 'superblocks' mode that wipes start and end of existing
    partitions in addition to volume.
  - pick 4M as the default size for writes. This is easily modified.
- add block-wipe subcommand for:
  curtin block-wipe --mode=random /dev/vdb /dev/vdc
- sysfs_partition_data: this returns information on partitions on a
  given block device.
- sys_block_path: handle case where devpath is a partition and prepend
  parent dev into path.
  
Note, this does not call rereadpt as sgdisk --zap-all would.
We probably want to add the ability to do that. The reason I dont have it
yet is that in newer ubuntu systemd is watching readwrite opens on the
block devices and will issue rereadpt when those are closed.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: