18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (c) 2000-2001 Christoph Hellwig.
38c2ecf20Sopenharmony_ci * Copyright (c) 2016 Krzysztof Blaszkowski
48c2ecf20Sopenharmony_ci * All rights reserved.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without
78c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions
88c2ecf20Sopenharmony_ci * are met:
98c2ecf20Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright
108c2ecf20Sopenharmony_ci *    notice, this list of conditions, and the following disclaimer,
118c2ecf20Sopenharmony_ci *    without modification.
128c2ecf20Sopenharmony_ci * 2. The name of the author may not be used to endorse or promote products
138c2ecf20Sopenharmony_ci *    derived from this software without specific prior written permission.
148c2ecf20Sopenharmony_ci *
158c2ecf20Sopenharmony_ci * Alternatively, this software may be distributed under the terms of the
168c2ecf20Sopenharmony_ci * GNU General Public License ("GPL").
178c2ecf20Sopenharmony_ci *
188c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
198c2ecf20Sopenharmony_ci * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
208c2ecf20Sopenharmony_ci * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
218c2ecf20Sopenharmony_ci * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
228c2ecf20Sopenharmony_ci * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
238c2ecf20Sopenharmony_ci * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
248c2ecf20Sopenharmony_ci * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
258c2ecf20Sopenharmony_ci * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
268c2ecf20Sopenharmony_ci * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
278c2ecf20Sopenharmony_ci * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
288c2ecf20Sopenharmony_ci * SUCH DAMAGE.
298c2ecf20Sopenharmony_ci *
308c2ecf20Sopenharmony_ci */
318c2ecf20Sopenharmony_ci#ifndef _VXFS_FSHEAD_H_
328c2ecf20Sopenharmony_ci#define _VXFS_FSHEAD_H_
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci/*
358c2ecf20Sopenharmony_ci * Veritas filesystem driver - fileset header structures.
368c2ecf20Sopenharmony_ci *
378c2ecf20Sopenharmony_ci * This file contains the physical structure of the VxFS
388c2ecf20Sopenharmony_ci * fileset header.
398c2ecf20Sopenharmony_ci */
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*
438c2ecf20Sopenharmony_ci * Fileset header
448c2ecf20Sopenharmony_ci */
458c2ecf20Sopenharmony_cistruct vxfs_fsh {
468c2ecf20Sopenharmony_ci	__fs32		fsh_version;		/* fileset header version */
478c2ecf20Sopenharmony_ci	__fs32		fsh_fsindex;		/* fileset index */
488c2ecf20Sopenharmony_ci	__fs32		fsh_time;		/* modification time - sec */
498c2ecf20Sopenharmony_ci	__fs32		fsh_utime;		/* modification time - usec */
508c2ecf20Sopenharmony_ci	__fs32		fsh_extop;		/* extop flags */
518c2ecf20Sopenharmony_ci	__fs32		fsh_ninodes;		/* allocated inodes */
528c2ecf20Sopenharmony_ci	__fs32		fsh_nau;		/* number of IAUs */
538c2ecf20Sopenharmony_ci	__fs32		fsh_old_ilesize;	/* old size of ilist */
548c2ecf20Sopenharmony_ci	__fs32		fsh_dflags;		/* flags */
558c2ecf20Sopenharmony_ci	__fs32		fsh_quota;		/* quota limit */
568c2ecf20Sopenharmony_ci	__fs32		fsh_maxinode;		/* maximum inode number */
578c2ecf20Sopenharmony_ci	__fs32		fsh_iauino;		/* IAU inode */
588c2ecf20Sopenharmony_ci	__fs32		fsh_ilistino[2];	/* ilist inodes */
598c2ecf20Sopenharmony_ci	__fs32		fsh_lctino;		/* link count table inode */
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci	/*
628c2ecf20Sopenharmony_ci	 * Slightly more fields follow, but they
638c2ecf20Sopenharmony_ci	 *  a) are not of any interest for us, and
648c2ecf20Sopenharmony_ci	 *  b) differ a lot in different vxfs versions/ports
658c2ecf20Sopenharmony_ci	 */
668c2ecf20Sopenharmony_ci};
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci#endif /* _VXFS_FSHEAD_H_ */
69