[BACK]Return to ffs_softdep_stub.c CVS log [TXT][DIR] Up to [local] / sys / ufs / ffs

Annotation of sys/ufs/ffs/ffs_softdep_stub.c, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: ffs_softdep_stub.c,v 1.15 2007/06/01 20:23:26 pedro Exp $     */
                      2:
                      3: /*
                      4:  * Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
                      5:  *
                      6:  * The soft updates code is derived from the appendix of a University
                      7:  * of Michigan technical report (Gregory R. Ganger and Yale N. Patt,
                      8:  * "Soft Updates: A Solution to the Metadata Update Problem in File
                      9:  * Systems", CSE-TR-254-95, August 1995).
                     10:  *
                     11:  * Redistribution and use in source and binary forms, with or without
                     12:  * modification, are permitted provided that the following conditions
                     13:  * are met:
                     14:  * 1. Redistributions of source code must retain the above copyright
                     15:  *    notice, this list of conditions and the following disclaimer.
                     16:  * 2. Redistributions in binary form must reproduce the above copyright
                     17:  *    notice, this list of conditions and the following disclaimer in the
                     18:  *    documentation and/or other materials provided with the distribution.
                     19:  * 3. None of the names of McKusick, Ganger, or the University of Michigan
                     20:  *    may be used to endorse or promote products derived from this software
                     21:  *    without specific prior written permission.
                     22:  *
                     23:  * THIS SOFTWARE IS PROVIDED BY MARSHALL KIRK MCKUSICK ``AS IS'' AND
                     24:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     25:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     26:  * ARE DISCLAIMED.  IN NO EVENT SHALL MARSHALL KIRK MCKUSICK BE LIABLE
                     27:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     28:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     29:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     30:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     31:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     32:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     33:  * SUCH DAMAGE.
                     34:  *
                     35:  *     from: @(#)ffs_softdep_stub.c    9.1 (McKusick) 7/10/97
                     36:  * $FreeBSD: src/sys/ufs/ffs/ffs_softdep_stub.c,v 1.14 2000/08/09 00:41:54 tegge Exp $
                     37:  */
                     38:
                     39: #ifndef FFS_SOFTUPDATES
                     40:
                     41: #include <sys/param.h>
                     42: #include <sys/vnode.h>
                     43: #include <sys/systm.h>
                     44: #include <ufs/ufs/quota.h>
                     45: #include <ufs/ufs/inode.h>
                     46: #include <ufs/ffs/ffs_extern.h>
                     47: #include <ufs/ufs/ufs_extern.h>
                     48:
                     49: int
                     50: softdep_flushfiles(struct mount *oldmnt, int flags, struct proc *p)
                     51: {
                     52:        panic("softdep_flushfiles called");
                     53: }
                     54:
                     55: int
                     56: softdep_mount(struct vnode *devvp, struct mount *mp, struct fs *fs,
                     57:     struct ucred *cred)
                     58: {
                     59:        return (0);
                     60: }
                     61:
                     62: void
                     63: softdep_initialize(void)
                     64: {
                     65:        return;
                     66: }
                     67:
                     68: #ifndef __OPTIMIZE__
                     69:
                     70: void
                     71: softdep_setup_inomapdep(struct buf *bp, struct inode *ip, ino_t newinum)
                     72: {
                     73:        panic("softdep_setup_inomapdep called");
                     74: }
                     75:
                     76: void
                     77: softdep_setup_blkmapdep(struct buf *bp, struct fs *fs, daddr_t newblkno)
                     78: {
                     79:        panic("softdep_setup_blkmapdep called");
                     80: }
                     81:
                     82: void
                     83: softdep_setup_allocdirect(struct inode *ip, daddr64_t lbn, daddr_t newblkno,
                     84:     daddr_t oldblkno, long newsize, long oldsize, struct buf *bp)
                     85: {
                     86:        panic("softdep_setup_allocdirect called");
                     87: }
                     88:
                     89: void
                     90: softdep_setup_allocindir_page(struct inode *ip, daddr64_t lbn, struct buf *bp,
                     91:     int ptrno, daddr_t newblkno, daddr_t oldblkno, struct buf *nbp)
                     92: {
                     93:        panic("softdep_setup_allocindir_page called");
                     94: }
                     95:
                     96: void
                     97: softdep_setup_allocindir_meta(struct buf *nbp, struct inode *ip,
                     98:     struct buf *bp, int ptrno, daddr_t newblkno)
                     99: {
                    100:        panic("softdep_setup_allocindir_meta called");
                    101: }
                    102:
                    103: void
                    104: softdep_setup_freeblocks(struct inode *ip, off_t length)
                    105: {
                    106:        panic("softdep_setup_freeblocks called");
                    107: }
                    108:
                    109: void
                    110: softdep_freefile(struct vnode *pvp, ino_t ino, mode_t mode)
                    111: {
                    112:        panic("softdep_freefile called");
                    113: }
                    114:
                    115: int
                    116: softdep_setup_directory_add(struct buf *bp, struct inode *dp, off_t diroffset,
                    117:     long newinum, struct buf *newdirbp, int isnewblk)
                    118: {
                    119:        panic("softdep_setup_directory_add called");
                    120:        return (0);
                    121: }
                    122:
                    123: void
                    124: softdep_change_directoryentry_offset(struct inode *dp, caddr_t base,
                    125:     caddr_t oldloc, caddr_t newloc, int entrysize)
                    126: {
                    127:        panic("softdep_change_directoryentry_offset called");
                    128: }
                    129:
                    130: void
                    131: softdep_setup_remove(struct buf *bp, struct inode *dp, struct inode *ip,
                    132:     int isrmdir)
                    133: {
                    134:        panic("softdep_setup_remove called");
                    135: }
                    136:
                    137: void
                    138: softdep_setup_directory_change(struct buf *bp, struct inode *dp,
                    139:     struct inode *ip, long newinum, int isrmdir)
                    140: {
                    141:        panic("softdep_setup_directory_change called");
                    142: }
                    143:
                    144: void
                    145: softdep_change_linkcnt(struct inode *ip, int nodelay)
                    146: {
                    147:        panic("softdep_change_linkcnt called");
                    148: }
                    149:
                    150: void
                    151: softdep_load_inodeblock(struct inode *ip)
                    152: {
                    153:        panic("softdep_load_inodeblock called");
                    154: }
                    155:
                    156: void
                    157: softdep_update_inodeblock(struct inode *ip, struct buf *bp, int waitfor)
                    158: {
                    159:        panic("softdep_update_inodeblock called");
                    160: }
                    161:
                    162: #endif
                    163:
                    164: void
                    165: softdep_fsync_mountdev(struct vnode *vp, int waitfor)
                    166: {
                    167:        return;
                    168: }
                    169:
                    170: int
                    171: softdep_flushworklist(struct mount *oldmnt, int *countp, struct proc *p)
                    172: {
                    173:        *countp = 0;
                    174:        return (0);
                    175: }
                    176:
                    177: int
                    178: softdep_sync_metadata(struct vop_fsync_args *ap)
                    179: {
                    180:        return (0);
                    181: }
                    182:
                    183: #ifndef __OPTIMIZE__
                    184:
                    185: int
                    186: softdep_slowdown(struct vnode *vp)
                    187: {
                    188:        panic("softdep_slowdown called");
                    189: }
                    190:
                    191: #endif
                    192:
                    193: #endif /* !FFS_SOFTUPDATES */

CVSweb