--- /dev/null	Mon Aug  5 17:20:50 2019
+++ new/usr/src/test/nfsv4-tests/tests/num_attrs/num_attrs_neg25.tcl	Mon Aug  5 17:20:50 2019
@@ -0,0 +1,191 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+# NFSv4 numbered attributes:
+#
+# a: Test get attr FATTR4_QUOTA_AVAIL_HARD NOT SUPPORTED in NFSv4 on 
+#    UFS(Unix Filesystem), expect OK 
+# b: Test get attr FATTR4_QUOTA_AVAIL_SOFT NOT SUPPORTED in NFSv4 on 
+#    UFS(Unix Filesystem), expect OK 
+# c: Test get attr FATTR4_QUOTA_USED NOT SUPPORTED in NFSv4 on 
+#    UFS(Unix Filesystem), expect OK 
+#
+
+set TESTROOT $env(TESTROOT)
+set delm $env(DELM)
+
+# include common code and init section
+source ${TESTROOT}${delm}tcl.init
+source ${TESTROOT}${delm}testproc
+
+# connect to the test server
+Connect
+
+# setting local variables
+set TNAME $argv0
+set expcode "FAIL"
+# Get testfile pathname
+set bfh [get_fh "$BASEDIRS"]
+
+# Start testing
+# ---------------------------------------------------------------
+# a:Test get attr FATTR4_QUOTA_HARD NOT SUPPORTED in NFSv4 on UFS, expect OK 
+
+set ASSERTION "Test get attr FATTR4_QUOTA_HARD NOT SUPPORTED in NFSv4 on UFS, expect OK"
+putmsg stdout 0 "$TNAME{a}: $ASSERTION"
+
+# Get a list of the supported attributes
+set attr {supported_attrs}
+set res [compound { Putfh $bfh; Lookup $env(TEXTFILE); Getfh; Getattr $attr }]
+set cont [ckres "Getattr" $status "OK" $res $FAIL]
+
+
+if { ![string equal $cont "false"] } {
+
+# Create supported_attr list
+set alist [lindex [lindex $res 3] 2]
+foreach attrval $alist {
+        set val [lindex $attrval 1]
+        set list [split $val]
+        putmsg stdout 1 "val on alist is $val"
+        putmsg stdout 1 "split list is $list"
+}
+
+# Setup test attr for testing purposes
+set attr {quota_avail_hard}
+
+#Get the filehandle of the test file 
+set res2 [compound {
+	Putfh $bfh;
+	Lookup $env(TEXTFILE);
+	Getfh;
+	Getattr $attr
+}]
+set cont2 [ckres "Getattr" $status "OK" $res2 $FAIL]
+
+if { ![string equal $cont2 "false"] } {
+	# Verify attr not in supported_attr list
+	if { [ lsearch -exact $list $attr ] < 0 } {
+        	putmsg stdout 0 "\t Test PASS: $attr not in supported attr list"
+	} else {
+        	putmsg stdout 0 "\t Test FAIL: unexpected $attr in supported attr list"
+	}
+}
+
+}
+
+puts ""
+
+# ---------------------------------------------------------------
+# b:Test get attr FATTR4_QUOTA_AVAIL_SOFT NOT SUPPORTED in NFSv4 on UFS, expect FAIL
+
+set ASSERTION "Test get attr FATTR4_QUOTA_AVAIL_SOFT NOT SUPPORTED in NFSv4 on UFS, expect OK"
+putmsg stdout 0 "$TNAME{b}: $ASSERTION"
+
+# Get a list of the supported attributes
+set attr {supported_attrs}
+set res [compound { Putfh $bfh; Lookup $env(TEXTFILE); Getfh; Getattr $attr }]
+set cont [ckres "Getattr" $status "OK" $res $FAIL]
+
+if { ![string equal $cont "false"] } {
+
+# Create supported_attr list
+set alist [lindex [lindex $res 3] 2]
+foreach attrval $alist {
+        set val [lindex $attrval 1]
+        set list [split $val]
+        putmsg stdout 1 "val on alist is $val"
+        putmsg stdout 1 "split list is $list"
+}
+
+# Setup attr for testing purposes
+set attr {quota_avail_soft}
+
+#Get the filehandle of the test file
+set res2 [compound {
+        Putfh $bfh;
+        Lookup $env(TEXTFILE);
+        Getfh;
+        Getattr $attr
+}]
+set cont2 [ckres "Getattr" $status "OK" $res2 $FAIL]
+
+if { ![string equal $cont2 "false"] } {
+	# Verify attr not in supported_attr list
+	if { [ lsearch -exact $list $attr ] < 0 } {
+        	putmsg stdout 0 "\t Test PASS: $attr not in supported attr list"
+	} else {
+        	putmsg stdout 0 "\t Test FAIL: unexpected $attr in supported attr list"
+	}
+}
+
+}
+
+puts ""
+
+
+# ---------------------------------------------------------------
+# c:Test get attr FATTR4_QUOTA_USED NOT SUPPORTED in NFSv4 on UFS, expect FAIL
+
+set ASSERTION "Test get attr FATTR4_QUOTA_USED NOT SUPPORTED in NFSv4 on UFS, expect FAIL"
+putmsg stdout 0 "$TNAME{c}: $ASSERTION"
+
+# Get a list of the supported attributes
+set attr {supported_attrs}
+set res [compound { Putfh $bfh; Lookup $env(TEXTFILE); Getfh; Getattr $attr }]
+ckres "Getattr" $status "OK" $res $FAIL
+
+# Create supported_attr list
+set alist [lindex [lindex $res 3] 2]
+foreach attrval $alist {
+        set val [lindex $attrval 1]
+        set list [split $val]
+        putmsg stdout 1 "val on alist is $val"
+        putmsg stdout 1 "split list is $list"
+}
+
+# Setup test attr for testing purposes
+set attr {quota_used}
+
+#Get the filehandle of the test file
+set res2 [compound {
+        Putfh $bfh;
+        Lookup $env(TEXTFILE);
+        Getfh;
+        Getattr $attr
+}]
+ckres "Getattr" $status "OK" $res2 $FAIL
+
+# Verify attr not in supported_attr list
+if { [ lsearch -exact $list $attr ] < 0 } {
+        putmsg stdout 0 "\t Test PASS: $attr not in supported attr list"
+} else {
+        putmsg stdout 0 "\t Test FAIL: unexpected $attr in supported attr list"
+}
+
+puts ""
+
+Disconnect 
+exit $PASS
