Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/examples/puffs/pgfs - enable writeback cache and namec...
details: https://anonhg.NetBSD.org/src/rev/85574b0dcf98
branches: trunk
changeset: 778733:85574b0dcf98
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Apr 11 14:25:54 2012 +0000
description:
- enable writeback cache and namecache.
- use setback hack to reduce number of puffs OPs.
diffstat:
share/examples/puffs/pgfs/mount.c | 6 +++---
share/examples/puffs/pgfs/pgfs_puffs.c | 6 ++++--
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (61 lines):
diff -r 5ec6a7f01b29 -r 85574b0dcf98 share/examples/puffs/pgfs/mount.c
--- a/share/examples/puffs/pgfs/mount.c Wed Apr 11 13:48:11 2012 +0000
+++ b/share/examples/puffs/pgfs/mount.c Wed Apr 11 14:25:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount.c,v 1.1 2011/10/12 01:05:00 yamt Exp $ */
+/* $NetBSD: mount.c,v 1.2 2012/04/11 14:25:54 yamt Exp $ */
/*-
* Copyright (c)2010,2011 YAMAMOTO Takashi,
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mount.c,v 1.1 2011/10/12 01:05:00 yamt Exp $");
+__RCSID("$NetBSD: mount.c,v 1.2 2012/04/11 14:25:54 yamt Exp $");
#endif /* not lint */
#include <err.h>
@@ -73,7 +73,7 @@
.m_flag = PGFS_MNT_ALT_DUMMY, .m_altloc = 1, },
MOPT_NULL,
};
- uint32_t pflags = PUFFS_KFLAG_NOCACHE_NAME|PUFFS_KFLAG_WTCACHE;
+ uint32_t pflags = PUFFS_KFLAG_IAONDEMAND;
unsigned int nconn = 8;
bool debug = false;
bool dosync;
diff -r 5ec6a7f01b29 -r 85574b0dcf98 share/examples/puffs/pgfs/pgfs_puffs.c
--- a/share/examples/puffs/pgfs/pgfs_puffs.c Wed Apr 11 13:48:11 2012 +0000
+++ b/share/examples/puffs/pgfs/pgfs_puffs.c Wed Apr 11 14:25:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pgfs_puffs.c,v 1.1 2011/10/12 01:05:00 yamt Exp $ */
+/* $NetBSD: pgfs_puffs.c,v 1.2 2012/04/11 14:25:54 yamt Exp $ */
/*-
* Copyright (c)2010,2011 YAMAMOTO Takashi,
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pgfs_puffs.c,v 1.1 2011/10/12 01:05:00 yamt Exp $");
+__RCSID("$NetBSD: pgfs_puffs.c,v 1.2 2012/04/11 14:25:54 yamt Exp $");
#endif /* not lint */
#include <assert.h>
@@ -655,6 +655,7 @@
if (error != 0) {
goto got_error;
}
+ puffs_setback(puffs_cc_getcc(pu), PUFFS_SETBACK_INACT_N2);
return 0;
got_error:
rollback(xc);
@@ -704,6 +705,7 @@
if (error != 0) {
goto got_error;
}
+ puffs_setback(puffs_cc_getcc(pu), PUFFS_SETBACK_INACT_N2);
return 0;
got_error:
rollback(xc);
Home |
Main Index |
Thread Index |
Old Index