xref: /netbsd/lib/libquota/quotapvt.h (revision 01237e81)
1*01237e81Sdholland /*	$NetBSD: quotapvt.h,v 1.2 2012/01/09 15:29:56 dholland Exp $	*/
25a065375Sdholland /*-
35a065375Sdholland  * Copyright (c) 2011 The NetBSD Foundation, Inc.
45a065375Sdholland  * All rights reserved.
55a065375Sdholland  *
65a065375Sdholland  * This code is derived from software contributed to The NetBSD Foundation
75a065375Sdholland  * by David A. Holland.
85a065375Sdholland  *
95a065375Sdholland  * Redistribution and use in source and binary forms, with or without
105a065375Sdholland  * modification, are permitted provided that the following conditions
115a065375Sdholland  * are met:
125a065375Sdholland  * 1. Redistributions of source code must retain the above copyright
135a065375Sdholland  *    notice, this list of conditions and the following disclaimer.
145a065375Sdholland  * 2. Redistributions in binary form must reproduce the above copyright
155a065375Sdholland  *    notice, this list of conditions and the following disclaimer in the
165a065375Sdholland  *    documentation and/or other materials provided with the distribution.
175a065375Sdholland  *
185a065375Sdholland  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
195a065375Sdholland  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
205a065375Sdholland  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
215a065375Sdholland  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
225a065375Sdholland  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
235a065375Sdholland  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
245a065375Sdholland  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
255a065375Sdholland  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
265a065375Sdholland  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
275a065375Sdholland  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
285a065375Sdholland  * POSSIBILITY OF SUCH DAMAGE.
295a065375Sdholland  */
305a065375Sdholland 
315a065375Sdholland struct quotahandle {
325a065375Sdholland 	char *qh_mountpoint;
33*01237e81Sdholland 	char *qh_mountdevice;
34*01237e81Sdholland 	int qh_isnfs;
35*01237e81Sdholland 	char spare[14*sizeof(char *) + 15 * sizeof(int)];
365a065375Sdholland };
375a065375Sdholland 
385a065375Sdholland /* proplib kernel interface */
395a065375Sdholland int __quota_proplib_get(struct quotahandle *qh, const struct quotakey *qk,
405a065375Sdholland 			struct quotaval *qv);
41*01237e81Sdholland 
42*01237e81Sdholland /* nfs rquotad interface */
43*01237e81Sdholland int __quota_nfs_get(struct quotahandle *qh, const struct quotakey *qk,
44*01237e81Sdholland 		    struct quotaval *qv);
45*01237e81Sdholland 
46