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