]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/194: fix the exception when run on 4k sector drives
authorZorro Lang <zlang@redhat.com>
Mon, 21 Sep 2015 03:06:17 +0000 (13:06 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Sep 2015 03:06:17 +0000 (13:06 +1000)
commite5aa6888b6c53dc85630d3ce41f988c02193e215
tree858094dba4db04754a38aff37fd6cb4fb14ba3c2
parent40390963c91c85e9b23a7972571dfae584628bb2
xfs/194: fix the exception when run on 4k sector drives

The below command in "Test 4":

    xfs_io -c "pwrite -S 0x33 -b 512 `expr $blksize \* 2` 512"

will run failed on 4k sector drives. So I use sector size to
replace the hard-code 512.

And we won't run this case when $sector_size > $page_size / 8.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/194