Modify golden output to match different Maximum file blocks for 32 & 64 bit systems

Merge of master-melb:xfs-cmds:29391a by kenmcd.

  enhanced the filter function
This commit is contained in:
Mohamed Barwani
2007-08-15 04:16:05 +00:00
parent 6155908c0e
commit a1c1adcc16
2 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -24,9 +24,10 @@ _cleanup()
_cleanup_testdir _cleanup_testdir
} }
_filter_qa_file() _filter_get_allocinfo()
{ {
sed -e "s#$qa_file#QA_FILE#" $SED_PROG -e "s#$qa_file#QA_FILE#g" \
-e "s#18014398509481983\|34359738367#MAX_FILE_BLOCKS#g"
} }
# get standard environment, filters and checks # get standard environment, filters and checks
@@ -46,9 +47,10 @@ qa_file=$SCRATCH_MNT/dmapi_hole_file
dd if=/dev/zero bs=1024k count=3 of=$qa_file dd if=/dev/zero bs=1024k count=3 of=$qa_file
${DMAPI_QASUITE1_DIR}cmd/get_allocinfo $qa_file | _filter_qa_file ${DMAPI_QASUITE1_DIR}cmd/get_allocinfo $qa_file | _filter_get_allocinfo
${DMAPI_QASUITE1_DIR}cmd/probe_hole -o 1048576 -l 0 $qa_file ${DMAPI_QASUITE1_DIR}cmd/probe_hole -o 1048576 -l 0 $qa_file
${DMAPI_QASUITE1_DIR}cmd/get_allocinfo $qa_file | _filter_qa_file ${DMAPI_QASUITE1_DIR}cmd/punch_hole -o 1048576 -l 0 $qa_file
${DMAPI_QASUITE1_DIR}cmd/get_allocinfo $qa_file | _filter_get_allocinfo
status=0 status=0
exit exit
+3 -3
View File
@@ -4,9 +4,9 @@ QA output created by 161
QA_FILE: starting offset 0 QA_FILE: starting offset 0
returned 0, nelemp 2 returned 0, nelemp 2
0: [0..6143]: resv 0: [0..6143]: resv
1: [6144..18014398509481983]: hole 1: [6144..MAX_FILE_BLOCKS]: hole
roffp is 1048576, rlenp is 0 roffp is 1048576, rlenp is 0
QA_FILE: starting offset 0 QA_FILE: starting offset 0
returned 0, nelemp 2 returned 0, nelemp 2
0: [0..6143]: resv 0: [0..2047]: resv
1: [6144..18014398509481983]: hole 1: [2048..MAX_FILE_BLOCKS]: hole