f3b585ce799a83688c5532c430f6133f098431c2samf * CDDL HEADER START
f3b585ce799a83688c5532c430f6133f098431c2samf * The contents of this file are subject to the terms of the
f3b585ce799a83688c5532c430f6133f098431c2samf * Common Development and Distribution License (the "License").
f3b585ce799a83688c5532c430f6133f098431c2samf * You may not use this file except in compliance with the License.
f3b585ce799a83688c5532c430f6133f098431c2samf * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f3b585ce799a83688c5532c430f6133f098431c2samf * See the License for the specific language governing permissions
f3b585ce799a83688c5532c430f6133f098431c2samf * and limitations under the License.
f3b585ce799a83688c5532c430f6133f098431c2samf * When distributing Covered Code, include this CDDL HEADER in each
f3b585ce799a83688c5532c430f6133f098431c2samf * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f3b585ce799a83688c5532c430f6133f098431c2samf * If applicable, add the following below this CDDL HEADER, with the
f3b585ce799a83688c5532c430f6133f098431c2samf * fields enclosed by brackets "[]" replaced with your own identifying
f3b585ce799a83688c5532c430f6133f098431c2samf * information: Portions Copyright [yyyy] [name of copyright owner]
f3b585ce799a83688c5532c430f6133f098431c2samf * CDDL HEADER END
f3b585ce799a83688c5532c430f6133f098431c2samf * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
f3b585ce799a83688c5532c430f6133f098431c2samf * Use is subject to license terms.
f3b585ce799a83688c5532c430f6133f098431c2samf#pragma ident "%Z%%M% %I% %E% SMI"
f3b585ce799a83688c5532c430f6133f098431c2samf * The waiting() function returns the value passed in, until something
f3b585ce799a83688c5532c430f6133f098431c2samf * external modifies it. In this case, the D script tst.call.d will
f3b585ce799a83688c5532c430f6133f098431c2samf * modify the value of *a, and thus break the while loop in dotest().
f3b585ce799a83688c5532c430f6133f098431c2samf * This serves the purpose of not making the RPC calls until tst.call.d
f3b585ce799a83688c5532c430f6133f098431c2samf * is active. Thus, the probes in tst.call.d can fire as a result of
f3b585ce799a83688c5532c430f6133f098431c2samf * the RPC call in dotest().
f3b585ce799a83688c5532c430f6133f098431c2samf return (*a);
f3b585ce799a83688c5532c430f6133f098431c2samf volatile int a = 0;
f3b585ce799a83688c5532c430f6133f098431c2samf while (waiting(&a) == 0)
f3b585ce799a83688c5532c430f6133f098431c2samf client = clnt_create("localhost", NFS4_PROGRAM, NFS_V4, "tcp");
f3b585ce799a83688c5532c430f6133f098431c2samf return (1);
f3b585ce799a83688c5532c430f6133f098431c2samf args.argarray.argarray_len = sizeof (arg) / sizeof (nfs_argop4);
f3b585ce799a83688c5532c430f6133f098431c2samf /* no need to manipulate nfs_argop4_u */
f3b585ce799a83688c5532c430f6133f098431c2samf return (2);
f3b585ce799a83688c5532c430f6133f098431c2samf return (0);
f3b585ce799a83688c5532c430f6133f098431c2samf/*ARGSUSED*/
f3b585ce799a83688c5532c430f6133f098431c2samf "mkdir /tmp/nfsv4test.%d ; share /tmp/nfsv4test.%d", getpid(),