FrontPage 

Fuego wiki

Login or create account

function hd test mount prepare in split format

Describe function_hd_test_mount_prepare here. = NAME = hd_test_mount_prepare
Describe function_hd_test_mount_prepare here.
= NAME =
hd_test_mount_prepare

SYNOPSIS [edit section]

= SYNOPSIS =
hd_test_mount_prepare <block_dev> <mount_point_dir>

DESCRIPTION [edit section]

= DESCRIPTION =
This function mounts a block device in the filesystem of the target.  It also
creates a directory inside that filesystem, with the name fuego.$TESTDIR.
If the device was previously mounted, it will first unmount it from its previous location.
If the device was previously mounted, it will first unmount it from its previous location.
If the block device has the string "ROOT", this function will only create the test directory, without unmounting or mounting any devices or filesystems.
If the block device has the string "ROOT", this function will only create the
test directory, without unmounting or mounting any devices or filesystems.
Note that the spec system in Fuego means that the parameters for file system testing are usually defined in the board file, and then selected in the spec file for a particular filesystem variant to be tested (for example testing a filesystem on a USB driver vs. a MMC device.) See Test Specs and Plans for more information.
Note that the spec system in Fuego means that the parameters for file system
testing are usually defined in the board file, and then selected in the spec
file for a particular filesystem variant to be tested (for example testing 
a filesystem on a USB driver vs. a MMC device.)  See [[Test Specs and Plans]] for more information.

EXAMPLES [edit section]

= EXAMPLES =
Here are some sample invocations:
{{{#!YellowBox
hd_test_mount_prepare $BENCHMARK_TIOBENCH_MOUNT_BLOCKDEV $BENCHMARK_TIOBENCH_MOUNT_POINT
}}}
{{{#!YellowBox
hd_test_mount_prepare $BENCHMARK_IOZONE_MOUNT_BLOCKDEV $BENCHMARK_IOZONE_MOUNT_POINT
}}}

ENVIRONMENT and ARGUMENTS [edit section]

= ENVIRONMENT and ARGUMENTS =
This function takes the following positional arguments:
 * $1 - the device node to mount
 * $2 - the directory for the mount point

RETURN [edit section]

= RETURN =
Returns non-zero on error.

SOURCE [edit section]

= SOURCE =
Located in ''scripts/functions.sh''

SEE ALSO [edit section]

hs_test_clean_umount, test_run
= SEE ALSO =
 * [[function_hd_test_clean_umount|hs_test_clean_umount]], [[function_test_run|test_run]]
TBWiki engine 1.8.3 by Tim Bird