[Ocfs2-tools-devel] [PATCH 2/3] Enhancement for mkfs-test to check inline-data:check for inline-data support
Marcos E. Matsunaga
Marcos.Matsunaga at oracle.com
Thu Aug 21 14:34:51 PDT 2008
This also looks good.
Regards,
Marcos Eduardo Matsunaga
Oracle USA
Linux Engineering
“The statements and opinions expressed here are my own and do not
necessarily represent those of Oracle Corporation.”
tristan.ye wrote:
> Add new testcases in mkfs-test:check inline-data support for
> mkfs.
>
> Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
> ---
>
> Index: ocfs2-test/programs/mkfs-tests/mkfs-test.sh
> ===================================================================
> --- ocfs2-test/programs/mkfs-tests/mkfs-test.sh (revision 183)
> +++ ocfs2-test/programs/mkfs-tests/mkfs-test.sh (working copy)
> @@ -407,6 +407,28 @@
> do_fsck ${OUT}
> testnum=$[$testnum+1]
>
> +### Test option '--fs-features=inline-data'
> +TAG=mkfs_test_${testnum}
> +OUT=${outdir}/${TAG}.log
> +echo "Test ${testnum}: --fs-features=inline-data"
> +label="Oracle_Home"
> +echo -n "mkfs ..... "
> +${MKFS} --fs-features=inline-data -x -F -b 4K -C 4K -N 2 -L ${label}
> ${device} 262144 >>${OUT} 2>&1
> +echo "OK"
> +echo -n "verify ..... "
> +${DEBUGFS} -R "stats" ${device} >>${OUT} 2>&1
> +${DEBUGFS} -R "stats" ${device}|${GREP} -i "Feature Incompat"|${GREP}
> -q "InlineData"
> +RC=$?
> +if [ "${RC}" != "0" ]; then
> + echo "ERROR: Did not find InlineData Flag on superblock " >> ${OUT}
> + echo "" >> ${OUT}
> + echo "FAILED. Errors in ${OUT}"
> +else
> + echo "OK"
> +fi
> +do_fsck ${OUT}
> +testnum=$[$testnum+1]
> +
> ### Test bitmap_cpg change
> TAG=mkfs_test_${testnum}
> OUT=${outdir}/${TAG}.log
>
>
> _______________________________________________
> Ocfs2-tools-devel mailing list
> Ocfs2-tools-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-tools-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20080821/6c2fadc8/attachment-0001.html
More information about the Ocfs2-tools-devel
mailing list