function_hd_test_mount_prepare 

Fuego wiki

Login or create account

function hd test mount prepare

Describe function_hd_test_mount_prepare here.

NAME [edit section]

hd_test_mount_prepare

SYNOPSIS [edit section]

hd_test_mount_prepare <block_dev> <mount_point_dir>

DESCRIPTION [edit section]

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 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.

EXAMPLES [edit section]

Here are some sample invocations:
    hd_test_mount_prepare $BENCHMARK_TIOBENCH_MOUNT_BLOCKDEV $BENCHMARK_TIOBENCH_MOUNT_POINT

    hd_test_mount_prepare $BENCHMARK_IOZONE_MOUNT_BLOCKDEV $BENCHMARK_IOZONE_MOUNT_POINT

ENVIRONMENT and ARGUMENTS [edit section]

This function takes the following positional arguments:
  • $1 - the device node to mount
  • $2 - the directory for the mount point

RETURN [edit section]

Returns non-zero on error.

SOURCE [edit section]

Located in scripts/functions.sh

SEE ALSO [edit section]

TBWiki engine 1.8.3 by Tim Bird