Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/common Retrict rumpfs to the provided size, like ot...
details: https://anonhg.NetBSD.org/src/rev/cb963e5ae619
branches: trunk
changeset: 327762:cb963e5ae619
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Mar 16 10:28:03 2014 +0000
description:
Retrict rumpfs to the provided size, like other filesystems.
diffstat:
tests/fs/common/fstest_rumpfs.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 6e53ab1fc5fb -r cb963e5ae619 tests/fs/common/fstest_rumpfs.c
--- a/tests/fs/common/fstest_rumpfs.c Sun Mar 16 10:23:59 2014 +0000
+++ b/tests/fs/common/fstest_rumpfs.c Sun Mar 16 10:28:03 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fstest_rumpfs.c,v 1.1 2010/11/11 17:39:29 pooka Exp $ */
+/* $NetBSD: fstest_rumpfs.c,v 1.2 2014/03/16 10:28:03 njoly Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -47,6 +47,13 @@
rumpfs_fstest_newfs(const atf_tc_t *tc, void **buf, const char *image,
off_t size, void *fspriv)
{
+ char tmp[64];
+ int res;
+
+ snprintf(tmp, sizeof(tmp), "%"PRId64, size);
+ res = setenv("RUMP_MEMLIMIT", tmp, 0);
+ if (res == -1)
+ return res;
return rump_init();
}
Home |
Main Index |
Thread Index |
Old Index