Whamcloud - gitweb
LU-8137 utils: fix llverdev for use on regular files 30/43230/14
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 7 Apr 2021 20:59:45 +0000 (14:59 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:31:10 +0000 (05:31 +0000)
commit3d34b39cb4700fdedaf3113c58491fcc8cd01b54
tree999af6e50f03c060252cf25da69db0cc718f1538
parent83dd308db59a9b95c1db5efa12ea5af22e9c8346
LU-8137 utils: fix llverdev for use on regular files

Allow llverdev to work with regular files to verify data contents.

Add a parameter to allow specifying the maximum file size to use.
Allow the use of unit suffix when specifying sizes as arguments.
If the file size is zero, write until the filesystem is full.
Use pread() and pwrite() to avoid having to deal with file offsets.

Add sanityn test_56a/56b to verify proper operation on a large file.

Update llverdev.8 man page to describe options properly.

Test-Parameters: trivial testlist=sanityn env=ONLY=56a,56b ostsizegb=12
Test-Parameters: fstype=zfs testlist=sanityn env=ONLY=56a,56b ostsizegb=12
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib06dc989fe692fd6aae388a79d9aa28f702540e5
Reviewed-on: https://review.whamcloud.com/43230
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Anjus George <georgea@ornl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/llverdev.8
lustre/tests/sanityn.sh
lustre/tests/test-framework.sh
lustre/utils/Makefile.am
lustre/utils/llverdev.c