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