summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-07 15:29:02 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-08 14:16:00 +1000
commit0739476294f6925b01ad12b1b198f85b41bc657d (patch)
treea2d1f20bd197ce8f6a441b299fcef300baf61333 /COPYING
parent3b286d116f8fb8438b8ae52669d2c1778b7a370b (diff)
downloadtalos-petitboot-0739476294f6925b01ad12b1b198f85b41bc657d.tar.gz
talos-petitboot-0739476294f6925b01ad12b1b198f85b41bc657d.zip
discover/devmapper: Read device size from sysfs
If udev doesn't export the ID_PART_ENTRY_SIZE variable for a device we skip creating a snapshot for it. However in most cases the sysfs attribute which udev reads to find ID_PART_ENTRY_SIZE is still available. Therefore if we don't have access to ID_PART_ENTRY_SIZE try to find the size in sysfs directly. This allows us to create snapshots for devices which often don't have this udev variable set, such as software raid (md) devices and NVMe devices. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud