mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
misc: fix _get_file_block_size usage
Fix these tests that rely on the allocation unit size of a file, which might not necessarily be the fs block size. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
f220ab921e
commit
0d444a9a29
+1
-1
@@ -44,7 +44,7 @@ mkdir $testdir
|
||||
metadump_file=$TEST_DIR/${seq}_metadump
|
||||
|
||||
echo "Create the original file blocks"
|
||||
blksz="$(_get_block_size $testdir)"
|
||||
blksz="$(_get_file_block_size $testdir)"
|
||||
nr_blks=$((4 * blksz / 12))
|
||||
_pwrite_byte 0x61 0 $((blksz * nr_blks)) $testdir/file1 >> $seqres.full
|
||||
|
||||
|
||||
Reference in New Issue
Block a user