Module Name: src Committed By: hannken Date: Wed Jun 2 09:56:59 UTC 2010
Modified Files: src/sys/ufs/ffs: ffs_snapshot.c Log Message: Initialize the initial snap block list's count. >From Antti Kantee <po...@netbsd.org>. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/sys/ufs/ffs/ffs_snapshot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ffs/ffs_snapshot.c diff -u src/sys/ufs/ffs/ffs_snapshot.c:1.97 src/sys/ufs/ffs/ffs_snapshot.c:1.98 --- src/sys/ufs/ffs/ffs_snapshot.c:1.97 Thu Oct 15 10:05:48 2009 +++ src/sys/ufs/ffs/ffs_snapshot.c Wed Jun 2 09:56:59 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_snapshot.c,v 1.97 2009/10/15 10:05:48 hannken Exp $ */ +/* $NetBSD: ffs_snapshot.c,v 1.98 2010/06/02 09:56:59 hannken Exp $ */ /* * Copyright 2000 Marshall Kirk McKusick. All Rights Reserved. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.97 2009/10/15 10:05:48 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.98 2010/06/02 09:56:59 hannken Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -684,6 +684,7 @@ *blkp++ = blkno + loc; for (; cg < fs->fs_ncg; cg++) *blkp++ = fragstoblks(fs, cgtod(fs, cg)); + (*snaplist)[0] = blkp - &(*snaplist)[0]; out: if (has_wapbl)