filesystem.c revision 1.2
11.2Sjunyoung/* $NetBSD: filesystem.c,v 1.2 2005/06/28 19:57:56 junyoung Exp $ */ 21.1Sleo 31.1Sleo/* 41.1Sleo * Copyright (c) 1993 Philip A. Nelson. 51.1Sleo * All rights reserved. 61.1Sleo * 71.1Sleo * Redistribution and use in source and binary forms, with or without 81.1Sleo * modification, are permitted provided that the following conditions 91.1Sleo * are met: 101.1Sleo * 1. Redistributions of source code must retain the above copyright 111.1Sleo * notice, this list of conditions and the following disclaimer. 121.1Sleo * 2. Redistributions in binary form must reproduce the above copyright 131.1Sleo * notice, this list of conditions and the following disclaimer in the 141.1Sleo * documentation and/or other materials provided with the distribution. 151.1Sleo * 3. All advertising materials mentioning features or use of this software 161.1Sleo * must display the following acknowledgement: 171.1Sleo * This product includes software developed by Philip A. Nelson. 181.1Sleo * 4. The name of Philip A. Nelson may not be used to endorse or promote 191.1Sleo * products derived from this software without specific prior written 201.1Sleo * permission. 211.1Sleo * 221.1Sleo * THIS SOFTWARE IS PROVIDED BY PHILIP NELSON ``AS IS'' AND ANY EXPRESS OR 231.1Sleo * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 241.1Sleo * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 251.1Sleo * IN NO EVENT SHALL PHILIP NELSON BE LIABLE FOR ANY DIRECT, INDIRECT, 261.1Sleo * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 271.1Sleo * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 281.1Sleo * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 291.1Sleo * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 301.1Sleo * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 311.1Sleo * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 321.1Sleo */ 331.1Sleo 341.2Sjunyoung#include <lib/libsa/stand.h> 351.2Sjunyoung#include <lib/libsa/ufs.h> 361.2Sjunyoung 371.1Sleostruct fs_ops file_system[] = { 381.2Sjunyoung FS_OPS(ufs), 391.1Sleo}; 401.2Sjunyoung 411.2Sjunyoungint nfsys = sizeof(file_system) / sizeof(file_system[0]); 42