#!/bin/bash

uname_v=$(uname -v)

# Use grep >/dev/null instead of -q to avoid mdb complaining if/when grep
# closes the stdin descriptor immediately upon finding a match.
if echo '*prvnodeops::print vnodeops_t vop_create | ::dis' | mdb -k | grep  praccess >/dev/null; then
	echo "prcreate() show signs of praccess() checks and should be OK ($uname_v)"
	exit 0
fi

echo "No praccess() check found in prcreate() ($uname_v)"
exit 1
