Ignore:
Timestamp:
Apr 15, 2013 9:15:45 AM (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1
Children:
3c28602
Parents:
8470ab3
Message:

Fix bugs checking for updates to a jail and showing MB usage on disk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/details.sh

    r0988d23 r22842a8  
    5353isDirZFS "${JAILDIR}" "1" 
    5454if [ $? -eq 0 ] ; then  
    55    tank=`getZFSTank "${JAILDIR}"` 
    56    diskUsage=`df -m | grep -w ${tank}${JAILDIR}$ | awk '{print $3}'` 
     55   tank=`getZFSDataset "${JAILDIR}"` 
     56   diskUsage=`df -m | grep -w "^${tank} " | awk '{print $3}'` 
    5757else 
    5858   diskUsage=`du -c -x -m ${JAILDIR} 2>/dev/null | grep total | tail -n 1 | awk '{print $1}'` 
Note: See TracChangeset for help on using the changeset viewer.