Date: Mon, 12 Dec 2005 21:58:58 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 88101 for review Message-ID: <200512122158.jBCLwwRC085734@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=88101 Change 88101 by imp@imp_Speedy on 2005/12/12 21:58:12 NO_FFS_SNAPSHOT Affected files ... .. //depot/projects/arm/src/sys/ufs/ffs/ffs_snapshot.c#5 edit Differences ... ==== //depot/projects/arm/src/sys/ufs/ffs/ffs_snapshot.c#5 (text+ko) ==== @@ -66,6 +66,62 @@ #define KERNCRED thread0.td_ucred #define DEBUG 1 +#include "opt_ffs.h" + +#ifdef NO_FFS_SNAPSHOT +int +ffs_snapshot(mp, snapfile) + struct mount *mp; + char *snapfile; +{ + return (EINVAL); +} + +int +ffs_snapblkfree(fs, devvp, bno, size, inum) + struct fs *fs; + struct vnode *devvp; + ufs2_daddr_t bno; + long size; + ino_t inum; +{ + return (EINVAL); +} + +void +ffs_snapremove(vp) + struct vnode *vp; +{ +} + +void +ffs_snapshot_mount(mp) + struct mount *mp; +{ +} + +void +ffs_snapshot_unmount(mp) + struct mount *mp; +{ +} + +void +ffs_snapgone(ip) + struct inode *ip; +{ +} + +int +ffs_copyonwrite(devvp, bp) + struct vnode *devvp; + struct buf *bp; +{ + return (EINVAL); +} + +#else + TAILQ_HEAD(snaphead, inode); struct snapdata { @@ -2171,3 +2227,5 @@ g_destroy_bio(bip); return (bp->b_error); } + +#endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512122158.jBCLwwRC085734>