1*bc3b2c55SMaxim Sobolev /* 2*bc3b2c55SMaxim Sobolev * Copyright (c) 2016 Maxim Sobolev <sobomax@FreeBSD.org> 3*bc3b2c55SMaxim Sobolev * All rights reserved. 4*bc3b2c55SMaxim Sobolev * 5*bc3b2c55SMaxim Sobolev * Redistribution and use in source and binary forms, with or without 6*bc3b2c55SMaxim Sobolev * modification, are permitted provided that the following conditions 7*bc3b2c55SMaxim Sobolev * are met: 8*bc3b2c55SMaxim Sobolev * 1. Redistributions of source code must retain the above copyright 9*bc3b2c55SMaxim Sobolev * notice, this list of conditions and the following disclaimer. 10*bc3b2c55SMaxim Sobolev * 2. Redistributions in binary form must reproduce the above copyright 11*bc3b2c55SMaxim Sobolev * notice, this list of conditions and the following disclaimer in the 12*bc3b2c55SMaxim Sobolev * documentation and/or other materials provided with the distribution. 13*bc3b2c55SMaxim Sobolev * 14*bc3b2c55SMaxim Sobolev * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*bc3b2c55SMaxim Sobolev * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*bc3b2c55SMaxim Sobolev * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*bc3b2c55SMaxim Sobolev * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*bc3b2c55SMaxim Sobolev * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*bc3b2c55SMaxim Sobolev * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*bc3b2c55SMaxim Sobolev * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*bc3b2c55SMaxim Sobolev * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*bc3b2c55SMaxim Sobolev * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*bc3b2c55SMaxim Sobolev * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*bc3b2c55SMaxim Sobolev * SUCH DAMAGE. 25*bc3b2c55SMaxim Sobolev */ 26*bc3b2c55SMaxim Sobolev 27*bc3b2c55SMaxim Sobolev off_t mkuz_get_insize(struct mkuz_cfg *); 28