/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* 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 (c) 1991, 1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ident "%Z%%M% %I% %E% SMI" /* SunOS */
#include <setjmp.h>
#include <string.h>
#include "snoop.h"
extern char *dlc_header;
static char *procnames_short[] = {
"Null", /* 0 */
"GETQUOTA", /* 1 */
"GETACTIVE", /* 2 */
};
static char *procnames_long[] = {
"Null procedure", /* 0 */
"Get quotas", /* 1 */
"Get active quotas", /* 2 */
};
static void show_quota(void);
void
char *data;
int len;
{
char *line;
int status;
int uid;
return;
return;
}
line = get_sum_line();
uid = getxdr_long();
"RQUOTA C %s Uid=%d Path=%s",
} else {
status = getxdr_u_long();
}
}
show_space();
return;
}
"Proc = %d (%s)",
switch (proc) {
case RQUOTAPROC_GETQUOTA:
(void) showxdr_string(RQ_PATHLEN,
"Path = %s");
(void) showxdr_long("User id = %d");
break;
}
} else {
status = getxdr_u_long();
"Status = %lu (%s)",
show_quota();
}
show_trailer();
}
}
static void
{
int active;
(void) showxdr_u_long("Block size = %lu");
active = getxdr_u_long();
" Quota checking = %lu (%s)",
(void) showxdr_u_long(" Blocks hard limit = %lu");
(void) showxdr_u_long(" Blocks soft limit = %lu");
(void) showxdr_u_long(" Current block count = %lu");
(void) show_space();
(void) showxdr_u_long(" File hard limit = %lu");
(void) showxdr_u_long(" File soft limit = %lu");
(void) showxdr_u_long(" Current file count = %lu");
(void) show_space();
(void) showxdr_u_long("Excessive blocks limit = %lu sec");
(void) showxdr_u_long("Excessive files limit = %lu sec");
}