Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs Initialize the initial snap block list's count.



details:   https://anonhg.NetBSD.org/src/rev/2960192d7505
branches:  trunk
changeset: 755346:2960192d7505
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Jun 02 09:56:59 2010 +0000

description:
Initialize the initial snap block list's count.

>From Antti Kantee <pooka%netbsd.org@localhost>.

diffstat:

 sys/ufs/ffs/ffs_snapshot.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a67f82e0d14a -r 2960192d7505 sys/ufs/ffs/ffs_snapshot.c
--- a/sys/ufs/ffs/ffs_snapshot.c        Wed Jun 02 09:43:12 2010 +0000
+++ b/sys/ufs/ffs/ffs_snapshot.c        Wed Jun 02 09:56:59 2010 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index