1*b1431b71Smrg /* $NetBSD: filesystem.c,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $ */ 2*b1431b71Smrg 3*b1431b71Smrg /* 4*b1431b71Smrg * Copyright (c) 1993 Philip A. Nelson. 5*b1431b71Smrg * All rights reserved. 6*b1431b71Smrg * 7*b1431b71Smrg * Redistribution and use in source and binary forms, with or without 8*b1431b71Smrg * modification, are permitted provided that the following conditions 9*b1431b71Smrg * are met: 10*b1431b71Smrg * 1. Redistributions of source code must retain the above copyright 11*b1431b71Smrg * notice, this list of conditions and the following disclaimer. 12*b1431b71Smrg * 2. Redistributions in binary form must reproduce the above copyright 13*b1431b71Smrg * notice, this list of conditions and the following disclaimer in the 14*b1431b71Smrg * documentation and/or other materials provided with the distribution. 15*b1431b71Smrg * 3. All advertising materials mentioning features or use of this software 16*b1431b71Smrg * must display the following acknowledgement: 17*b1431b71Smrg * This product includes software developed by Philip A. Nelson. 18*b1431b71Smrg * 4. The name of Philip A. Nelson may not be used to endorse or promote 19*b1431b71Smrg * products derived from this software without specific prior written 20*b1431b71Smrg * permission. 21*b1431b71Smrg * 22*b1431b71Smrg * THIS SOFTWARE IS PROVIDED BY PHILIP NELSON ``AS IS'' AND ANY EXPRESS OR 23*b1431b71Smrg * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24*b1431b71Smrg * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25*b1431b71Smrg * IN NO EVENT SHALL PHILIP NELSON BE LIABLE FOR ANY DIRECT, INDIRECT, 26*b1431b71Smrg * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27*b1431b71Smrg * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28*b1431b71Smrg * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29*b1431b71Smrg * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30*b1431b71Smrg * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31*b1431b71Smrg * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32*b1431b71Smrg * 33*b1431b71Smrg * filesystem.c 34*b1431b71Smrg */ 35*b1431b71Smrg 36*b1431b71Smrg #include <lib/libsa/stand.h> 37*b1431b71Smrg #include <lib/libsa/ufs.h> 38*b1431b71Smrg #include <lib/libsa/ustarfs.h> 39*b1431b71Smrg #include <lib/libsa/cd9660.h> 40*b1431b71Smrg #include <lib/libsa/lfs.h> 41*b1431b71Smrg 42*b1431b71Smrg struct fs_ops file_system[] = { 43*b1431b71Smrg FS_OPS(ustarfs), /* this can work from tape, so put it first */ 44*b1431b71Smrg FS_OPS(ufs), 45*b1431b71Smrg FS_OPS(cd9660), 46*b1431b71Smrg FS_OPS(lfsv1), 47*b1431b71Smrg FS_OPS(lfsv2), 48*b1431b71Smrg }; 49*b1431b71Smrg 50*b1431b71Smrg int nfsys = sizeof(file_system)/sizeof(struct fs_ops); 51*b1431b71Smrg 52