function_hd_test_clean_umount 

Fuego 1.0 wiki

Login or create account

function hd test clean umount

Describe function_hd_test_mount_prepare here.

NAME [edit section]

hd_test_clean_umount

SYNOPSIS [edit section]

hd_test_clean_umount <mount_device> <mount_point_dir>

DESCRIPTION [edit section]

This function remove the test directory mounted filesystem, and then unmounts the block device from the filesystem of the target.

If the block device has the string "ROOT", this function will only remove the test directory, and not unmount the filesystem.

EXAMPLES [edit section]

Here are some sample invocations:
    hd_test_clean_umount $BENCHMARK_TIOBENCH_MOUNT_BLOCKDEV $BENCHMARK_TIOBENCH_MOUNT_POINT

    hd_test_clean_umount $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 unmount
  • $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