Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/puffs Put a copy of our existing data first in the no...
details: https://anonhg.NetBSD.org/src/rev/9472e40a90ba
branches: trunk
changeset: 1020153:9472e40a90ba
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 01 19:00:33 2021 +0000
description:
Put a copy of our existing data first in the non-error case (noticed by RVP).
diffstat:
sys/fs/puffs/puffs_vfsops.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 225f27a79378 -r 9472e40a90ba sys/fs/puffs/puffs_vfsops.c
--- a/sys/fs/puffs/puffs_vfsops.c Thu Apr 01 15:06:49 2021 +0000
+++ b/sys/fs/puffs/puffs_vfsops.c Thu Apr 01 19:00:33 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: puffs_vfsops.c,v 1.125 2020/02/27 22:12:53 ad Exp $ */
+/* $NetBSD: puffs_vfsops.c,v 1.126 2021/04/01 19:00:33 christos Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.125 2020/02/27 22:12:53 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.126 2021/04/01 19:00:33 christos Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -501,6 +501,9 @@
*
* XXX: cache the copy in non-error case
*/
+ if (!error) {
+ puffs_statvfs_to_statvfs(&statvfs_msg->pvfsr_sb, sbp);
+ }
copy_statvfs_info(sbp, mp);
if (!error) {
statvfs_to_puffs_statvfs(sbp, &statvfs_msg->pvfsr_sb);
Home |
Main Index |
Thread Index |
Old Index