# @name 
#	NAND modular read write negative test with ubifs 
# @desc 
#       modprobe nand module first and then do RW and rmmod before RW finishing 
# @setup_requires nand
# @requires  nand && ubifs 

NAND_S_MODULAR_NEG_MOD_RW_UBIFS source "common.sh"; install_modules.sh "nand"; part=`get_mtd_partition_number.sh "nand"` || die "error getting mtd part number: $part"; size=`get_mtd_size.sh "$part"` || die "error getting mtd size: $size"; size=$(( $size/MB )) && size=`get_ceiling_divide.sh "$size" 8` || die "error getting divide ceiling"; blk_device_modular_dd_rw_neg.sh -f "ubifs" -b "1M" -c "$size" -d "nand" -i "write_in_bg" 

