[PC-BSD Commits] r5089 - pcbsd/trunk/pc-sysinstall/backend-query

svn at pcbsd.org svn at pcbsd.org
Thu Nov 19 09:05:20 PST 2009


Author: kris
Date: 2009-11-19 09:05:20 -0800 (Thu, 19 Nov 2009)
New Revision: 5089

Modified:
   pcbsd/trunk/pc-sysinstall/backend-query/disk-part.sh
Log:

Updated our disk-part tool to also display free MB on the drive



Modified: pcbsd/trunk/pc-sysinstall/backend-query/disk-part.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/disk-part.sh	2009-11-19 15:44:37 UTC (rev 5088)
+++ pcbsd/trunk/pc-sysinstall/backend-query/disk-part.sh	2009-11-19 17:05:20 UTC (rev 5089)
@@ -71,6 +71,8 @@
 LASTB="`expr $SIZEB + $START`"
 TOTALB="`diskinfo -v ${1} | grep 'in sectors' | tr -s '\t' ' ' | cut -d ' ' -f 2`"
 FREEB="`expr $TOTALB - $LASTB`"
+FREEMB="`expr ${FREEB} / 2048`"
+echo "${1}-freemb: $FREEMB"
 echo "${1}-freeblocks: $FREEB"
 
 rm ${TMPDIR}/disk-${1}



More information about the Commits mailing list