--- /dev/null
+[ NO EXCITING FILE ]
+fincore: failed to open: no_such_file: No such file or directory
+return value: 1
+ 0 0 i_EMPTY_FILE
+return value: 0
+ 1 65535 i_PAGESIZE_-1__incore_
+return value: 0
+ 1 65536 i_JUST_PAGESIZE_incore_
+return value: 0
+ 0 65536 i_JUST_PAGESIZE_directio_
+return value: 0
+ 2 131072 i_TWO_PAGES_incore_
+return value: 0
+ 0 131072 i_TWO_PAGES_directio_
+return value: 0
+ 1 131072 i_TWO_PAGES_mixed_directio_incore_
+return value: 0
+ 1 131072 i_TWO_PAGES_mixed_incore_directio_
+return value: 0
+ 2 2147418112 i_WINDOW_SIZE_incore-sparse-incore_
+return value: 0
+ 0 2147418112 i_WINDOW_SIZE_directio-sparse-directio_
+return value: 0
+ 1 2147418112 i_WINDOW_SIZE_incore-sparse-directio_
+return value: 0
+ 1 2147418112 i_WINDOW_SIZE_directio-sparse-incore_
+return value: 0
+ 2 2147483648 i_WINDOW_SIZE_+_1_page_incore-sparse-incore_
+return value: 0
+ 0 2147483648 i_WINDOW_SIZE_+_1_page_directio-sparse-directio_
+return value: 0
+ 1 2147483648 i_WINDOW_SIZE_+_1_page_incore-sparse-directio_
+return value: 0
+ 1 2147483648 i_WINDOW_SIZE_+_1_page_directio-sparse-incore_
+return value: 0
+[ MULTIPLE FILES ]
+fincore: failed to open: no_such_file: No such file or directory
+PAGES SIZE FILE
+ 0 0 i_EMPTY_FILE
+ 1 65535 i_PAGESIZE_-1__incore_
+ 1 65536 i_JUST_PAGESIZE_incore_
+ 0 65536 i_JUST_PAGESIZE_directio_
+ 2 131072 i_TWO_PAGES_incore_
+ 0 131072 i_TWO_PAGES_directio_
+ 1 131072 i_TWO_PAGES_mixed_directio_incore_
+ 1 131072 i_TWO_PAGES_mixed_incore_directio_
+ 2 2147418112 i_WINDOW_SIZE_incore-sparse-incore_
+ 0 2147418112 i_WINDOW_SIZE_directio-sparse-directio_
+ 1 2147418112 i_WINDOW_SIZE_incore-sparse-directio_
+ 1 2147418112 i_WINDOW_SIZE_directio-sparse-incore_
+ 2 2147483648 i_WINDOW_SIZE_+_1_page_incore-sparse-incore_
+ 0 2147483648 i_WINDOW_SIZE_+_1_page_directio-sparse-directio_
+ 1 2147483648 i_WINDOW_SIZE_+_1_page_incore-sparse-directio_
+ 1 2147483648 i_WINDOW_SIZE_+_1_page_directio-sparse-incore_
+return value: 1
--- /dev/null
+[ NO EXCITING FILE ]
+fincore: failed to open: no_such_file: No such file or directory
+return value: 1
+ 0 i_EMPTY_FILE
+return value: 0
+ 1 i_PAGESIZE_-1__incore_
+return value: 0
+ 1 i_JUST_PAGESIZE_incore_
+return value: 0
+ 0 i_JUST_PAGESIZE_directio_
+return value: 0
+ 2 i_TWO_PAGES_incore_
+return value: 0
+ 0 i_TWO_PAGES_directio_
+return value: 0
+ 1 i_TWO_PAGES_mixed_directio_incore_
+return value: 0
+ 1 i_TWO_PAGES_mixed_incore_directio_
+return value: 0
+ 2 i_WINDOW_SIZE_incore-sparse-incore_
+return value: 0
+ 0 i_WINDOW_SIZE_directio-sparse-directio_
+return value: 0
+ 1 i_WINDOW_SIZE_incore-sparse-directio_
+return value: 0
+ 1 i_WINDOW_SIZE_directio-sparse-incore_
+return value: 0
+ 2 i_WINDOW_SIZE_+_1_page_incore-sparse-incore_
+return value: 0
+ 0 i_WINDOW_SIZE_+_1_page_directio-sparse-directio_
+return value: 0
+ 1 i_WINDOW_SIZE_+_1_page_incore-sparse-directio_
+return value: 0
+ 1 i_WINDOW_SIZE_+_1_page_directio-sparse-incore_
+return value: 0
+[ MULTIPLE FILES ]
+fincore: failed to open: no_such_file: No such file or directory
+PAGES FILE
+ 0 i_EMPTY_FILE
+ 1 i_PAGESIZE_-1__incore_
+ 1 i_JUST_PAGESIZE_incore_
+ 0 i_JUST_PAGESIZE_directio_
+ 2 i_TWO_PAGES_incore_
+ 0 i_TWO_PAGES_directio_
+ 1 i_TWO_PAGES_mixed_directio_incore_
+ 1 i_TWO_PAGES_mixed_incore_directio_
+ 2 i_WINDOW_SIZE_incore-sparse-incore_
+ 0 i_WINDOW_SIZE_directio-sparse-directio_
+ 1 i_WINDOW_SIZE_incore-sparse-directio_
+ 1 i_WINDOW_SIZE_directio-sparse-incore_
+ 2 i_WINDOW_SIZE_+_1_page_incore-sparse-incore_
+ 0 i_WINDOW_SIZE_+_1_page_directio-sparse-directio_
+ 1 i_WINDOW_SIZE_+_1_page_incore-sparse-directio_
+ 1 i_WINDOW_SIZE_+_1_page_directio-sparse-incore_
+return value: 1
$DD if=/dev/zero of=$input count=1 bs=$bs $flags &> /dev/null
fi
- $TS_CMD_FINCORE --output PAGES,SIZE,FILE --bytes --noheadings $input
+ $TS_CMD_FINCORE --output $COLUMNS --bytes --noheadings $input
footer "$?"
}
$DD if=/dev/zero of=$input count=1 bs=$bs $flags0 &> /dev/null
$DD if=/dev/zero of=$input count=1 bs=$bs $flags1 &> /dev/null
- $TS_CMD_FINCORE --output PAGES,SIZE,FILE --bytes --noheadings $input
+ $TS_CMD_FINCORE --output $COLUMNS --bytes --noheadings $input
footer "$?"
}
PAGE_SIZE=$($TS_HELPER_SYSINFO pagesize)
WINDOW_SIZE=$(( 32 * 1024 * PAGE_SIZE ))
+# we use PAGE_SIZE dependent output for a few systems
+if test -f "$TS_EXPECTED.$PAGE_SIZE"; then
+ TS_EXPECTED+=".$PAGE_SIZE"
+ COLUMNS="PAGES,SIZE,FILE"
+else
+ TS_EXPECTED+=".nosize"
+ COLUMNS="PAGES,FILE"
+fi
+
+
# seems unsupported by some dd(1) version
#DD_FLAGS="status=none"
INPUT="${INPUT} ${input}"
header "NO EXCITING FILE"
- $TS_CMD_FINCORE --output PAGES,SIZE,FILE --bytes --noheadings $input
+ $TS_CMD_FINCORE --output $COLUMNS --bytes --noheadings $input
footer "$?"
} >> $TS_OUTPUT 2>&1
{
header "MULTIPLE FILES"
- $TS_CMD_FINCORE --output PAGES,SIZE,FILE --bytes $INPUT
+ $TS_CMD_FINCORE --output $COLUMNS --bytes $INPUT
footer "$?"
} >> $TS_OUTPUT 2>&1