Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 2015 19:30:44 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r292353 - projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zfs_set
Message-ID:  <201512161930.tBGJUiTn047536@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Wed Dec 16 19:30:44 2015
New Revision: 292353
URL: https://svnweb.freebsd.org/changeset/base/292353

Log:
  Disable read-only testing of space usage properties.
  
  These properties (used, available, referenced) are easily influenced by
  internal machinations in ZFS, and currently cause random failures of this
  test when run on a system running the BP workers.
  
  The test itself checks that the properties can't be changed, and goes
  farther than just asserting that the 'zfs set' command fails: it also checks
  that the property's value still matches its original value.
  
  For some reason, however, background activity causes short-term changes in
  these values, that appear not to involve either an ioctl (at least one that
  would show up in 'zpool history') or filesystem accesses.  This is hopefully
  still only temporary just to get the tests passing.
  
  Submitted by:	Will
  Sponsored by:	Spectra Logic Corp

Modified:
  projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ro_props_001_pos.ksh

Modified: projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ro_props_001_pos.ksh
==============================================================================
--- projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ro_props_001_pos.ksh	Wed Dec 16 19:28:42 2015	(r292352)
+++ projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ro_props_001_pos.ksh	Wed Dec 16 19:30:44 2015	(r292353)
@@ -63,11 +63,36 @@ set -A values filesystem volume snapshot
 set -A dataset $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \
 	$TESTPOOL/$TESTCTR/$TESTFS1 $TESTPOOL/$TESTFS@$TESTSNAP \
 	$TESTPOOL/$TESTVOL@$TESTSNAP
-typeset ro_props="type used available avail creation referenced refer compressratio \
-	mounted origin"
-typeset snap_ro_props="volsize recordsize recsize quota reservation reserv mountpoint \
-	sharenfs checksum compression compress atime devices exec readonly rdonly \
-	setuid"
+
+typeset ro_props="type"
+ro_props="$ro_props creation"
+ro_props="$ro_props compressratio"
+ro_props="$ro_props mounted"
+ro_props="$ro_props origin"
+# Uncomment these once the test ensures they can't be changed.
+#ro_props="$ro_props used"
+#ro_props="$ro_props available"
+#ro_props="$ro_props avail"
+#ro_props="$ro_props referenced"
+#ro_props="$ro_props refer"
+
+typeset snap_ro_props="volsize"
+snap_ro_props="$snap_ro_props recordsize"
+snap_ro_props="$snap_ro_props recsize"
+snap_ro_props="$snap_ro_props quota"
+snap_ro_props="$snap_ro_props reservation"
+snap_ro_props="$snap_ro_props reserv"
+snap_ro_props="$snap_ro_props mountpoint"
+snap_ro_props="$snap_ro_props sharenfs"
+snap_ro_props="$snap_ro_props checksum"
+snap_ro_props="$snap_ro_props compression"
+snap_ro_props="$snap_ro_props compress"
+snap_ro_props="$snap_ro_props atime"
+snap_ro_props="$snap_ro_props devices"
+snap_ro_props="$snap_ro_props exec"
+snap_ro_props="$snap_ro_props readonly"
+snap_ro_props="$snap_ro_props rdonly"
+snap_ro_props="$snap_ro_props setuid"
 
 $ZFS upgrade -v > /dev/null 2>&1
 if [[ $? -eq 0 ]]; then
@@ -76,6 +101,7 @@ fi
 	
 function cleanup
 {
+	poolexists $TESTPOOL && log_must $ZPOOL history $TESTPOOL
 	datasetexists $TESTPOOL/$TESTVOL@$TESTSNAP && \
 		destroy_snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
 	datasetexists $TESTPOOL/$TESTFS@$TESTSNAP && \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512161930.tBGJUiTn047536>