ports/164055: sysutils/zfs-periodic: Test if scrubbing is in process fails when using volume describtors instead of pools

Marc Werner marc.werner at seemoo.tu-darmstadt.de
Fri Jan 13 08:40:10 UTC 2012


The following reply was made to PR ports/164055; it has been noted by GNATS.

From: Marc Werner <marc.werner at seemoo.tu-darmstadt.de>
To: bug-followup at FreeBSD.org,
 marc.werner at seemoo.tu-darmstadt.de
Cc:  
Subject: Re: ports/164055: sysutils/zfs-periodic: Test if scrubbing is in process fails when using volume describtors instead of pools
Date: Fri, 13 Jan 2012 09:18:25 +0100

 Use this fix instead of the proposed one as the first suggestion throws =
 errors in some circumstances.
 
 # checks to see if there's a scrub in progress
 scrub_in_progress()
 {
   # This code was added to allow snapshotting of single volumes without =
 getting an error here
   scrub_pool=3D`echo $1 | awk '{split($0,a,"/"); print a[1]}'`
 
   if zpool status $scrub_pool | grep "scrub in progress" > /dev/null; =
 then
     return 0
   else
     return 1
   fi
 }
 



More information about the freebsd-ports-bugs mailing list