Commit 2df19f1f authored by Alexander Motin's avatar Alexander Motin
Browse files

Revert "Always format SAS SSDs when resizing."

It seems like my fault to not set Save Pages bug.  Format is just an
official workaround, that is not really needed.

This reverts commit 8b5b0818.
parent 64663ae2
Showing with 2 additions and 2 deletions
+2 -2
......@@ -183,9 +183,9 @@ Number of Logical Blocks: ${lsize}" | camcontrol modepage ${dev} -DELe
err=$?
fi
# When resizing SSD format to deallocate the flash.
# When resizing SSD to specified size (down?) format to deallocate the flash.
ssd=`sg_vpd -p bdc /dev/${dev} 2>/dev/null | grep -c "Non-rotating medium"`
if [ ${ssd} -ne 0 ]; then
if [ ${ssd} -ne 0 -a -n "${size}" ]; then
echo "Formatting device."
camcontrol format ${dev} -y
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