Commit d2b9b25e authored by Alexander Motin's avatar Alexander Motin
Browse files

When resizing SCSI disks request values to be saved.

By default writes go to Current that may be lost on power cycle.
parent 2df19f1f
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -168,7 +168,7 @@ scsi)
echo "Specified size is too big for the short block descriptor."
exit 1
fi
echo "Number of Logical Blocks: ${lsize}" | camcontrol modepage ${dev} -DELe
echo "Number of Logical Blocks: ${lsize}" | camcontrol modepage ${dev} -DELe -P3
err=$?
else
if [ -z "${size}" ]; then
......@@ -179,7 +179,7 @@ scsi)
lsize=$((${size} & 0xffffffff))
fi
echo "Number of Logical Blocks High: ${hsize}
Number of Logical Blocks: ${lsize}" | camcontrol modepage ${dev} -DELe
Number of Logical Blocks: ${lsize}" | camcontrol modepage ${dev} -DELe -P3
err=$?
fi
......
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