From 0b5f0009c33e349cfa0d9bac9fc3fa9ee92be44c Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Mon, 4 Nov 2013 00:40:09 -0500 Subject: [PATCH] add 'device_mapper' key for partition to store real dm node key 'device' for partition is for the link device, like /dev/loop01 key 'device_mapper' for partition is for the real device, like /dev/mapper/loop0p1 Change-Id: I6a5962cbe98cc111b942fd6e314de719324b6f04 Signed-off-by: Gui Chen --- mic/utils/partitionedfs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mic/utils/partitionedfs.py b/mic/utils/partitionedfs.py index e676a8a..63416fe 100644 --- a/mic/utils/partitionedfs.py +++ b/mic/utils/partitionedfs.py @@ -122,6 +122,7 @@ class PartitionedMount(Mount): 'fsopts': fsopts, # Filesystem mount options 'disk_name': disk_name, # physical disk name holding partition 'device': None, # kpartx device node for partition + 'mapper_device': None, # mapper device node 'mount': None, # Mount object 'subvol': subvol, # Subvolume name 'boot': boot, # Bootable flag @@ -147,6 +148,7 @@ class PartitionedMount(Mount): 'label': label, # Partition label 'disk_name': disk_name, # physical disk name holding partition 'device': None, # kpartx device node for partition + 'mapper_device': None, # mapper device node 'mount': None, # Mount object 'num': None, # Partition number 'boot': boot, # Bootable flag -- 2.7.4