1
# See the file LICENSE for redistribution information.
3
# Copyright (c) 2001-2002
4
# Sleepycat Software. All rights reserved.
9
# TEST This one should be faster and not require so much disk space,
10
# TEST although it doesn't test as extensively. Create an mpool file
11
# TEST with 1K pages. Dirty page 6000000. Sync.
12
proc bigfile002 { args } {
16
"Bigfile002: Creating large, sparse file through mpool..."
22
set env [berkdb_env -create -home $testdir]
23
error_check_good valid_env [is_valid_env $env] TRUE
27
set file [$env mpool -create -pagesize 1024 $name]
30
set pg [$file get -create 6000000]
31
error_check_good pg_init [$pg init A] 0
32
error_check_good pg_set [$pg is_setto A] 1
35
error_check_good pg_put [$pg put -dirty] 0
38
error_check_good fsync [$file fsync] 0
43
error_check_good fclose [$file close] 0
44
error_check_good env_close [$env close] 0