Commit 0caf8f67 authored by Helen Koike's avatar Helen Koike

wip: table

parent 16e51300
......@@ -122,10 +122,11 @@ create_linear()
# Add prefix to variables in file
sed -i -e "s/^/$PREFIX/" ${DISK}.info
echo "$P1_START $P1_SIZE linear ${LOOP_DEV}p1 0
table="$P1_START $P1_SIZE linear ${LOOP_DEV}p1 0
$P2_START $P2_SIZE linear ${LOOP_DEV}p2 0
$P3_START $P3_SIZE linear ${LOOP_DEV}p3 0
$P4_START $P4_SIZE linear ${LOOP_DEV}p4 0" | sudo dmsetup create $DM_DEV
$P4_START $P4_SIZE linear ${LOOP_DEV}p4 0"
echo "$table" | sudo dmsetup create $DM_DEV
echo "concise table (with loopback device)"
sudo dmsetup table --concise /dev/mapper/$DM_DEV
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment