PERFORCE change 88101 for review
Warner Losh
imp at FreeBSD.org
Mon Dec 12 13:59:00 PST 2005
http://perforce.freebsd.org/chv.cgi?CH=88101
Change 88101 by imp at 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
More information about the p4-projects
mailing list