From e8f75d1d03805e7d2a38ffe8295b11e2ad0876cb Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Mon, 9 Jan 2023 03:54:00 +0000 Subject: [PATCH] Fix samehash and lookup_v5 tests --- README | 2 +- img/gen.sh | 2 +- test/057_#xfs_#lookup_#v5_all.ref.log | 4 ++-- ...f70s1_#xfs_#xfsv5_#s05k_#samehash_ls_all_dir_types.ref.log | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README b/README index d546829..9baeb1d 100644 --- a/README +++ b/README @@ -115,7 +115,7 @@ Allow reading process_vm_readv syscall. To create tap devices. - # setcap cap_net_admin+ep ../umka_os + # setcap cap_net_admin+ep umka_os To load apps at 0 address. diff --git a/img/gen.sh b/img/gen.sh index 224b4d5..db830ac 100755 --- a/img/gen.sh +++ b/img/gen.sh @@ -151,7 +151,7 @@ xfs_lookup_v5.qcow2 () { local img=$FUNCNAME local img_raw=$(basename $img .qcow2).raw - fallocate -l 3GiB $img_raw + fallocate -l 5GiB $img_raw $SGDISK --clear --new=0:0:0 $img_raw > /dev/null sudo losetup -P $LOOP_DEV $img_raw local p1="$LOOP_DEV"p1 diff --git a/test/057_#xfs_#lookup_#v5_all.ref.log b/test/057_#xfs_#lookup_#v5_all.ref.log index 2ce6f40..8cdbbad 100644 --- a/test/057_#xfs_#lookup_#v5_all.ref.log +++ b/test/057_#xfs_#lookup_#v5_all.ref.log @@ -1,7 +1,7 @@ /> umka_init /> disk_add ../img/xfs_lookup_v5.qcow2 hd0 -c 524288 -/hd0: sector_size=512, capacity=6291456 (3 GiB), num_partitions=1 -/hd0/1: fs=xfs, start=2048 (1 MiB), length=6287360 (3070 MiB) +/hd0: sector_size=512, capacity=10485760 (5 GiB), num_partitions=1 +/hd0/1: fs=xfs, start=2048 (1 MiB), length=10481664 (5118 MiB) /> cd /hd0/1/dir_sf dir_sf> stat70 d0000000000/d0000000000 status = 0 success diff --git a/test/064_#f70_#f70s1_#xfs_#xfsv5_#s05k_#samehash_ls_all_dir_types.ref.log b/test/064_#f70_#f70s1_#xfs_#xfsv5_#s05k_#samehash_ls_all_dir_types.ref.log index 9e09f6b..282652a 100644 --- a/test/064_#f70_#f70s1_#xfs_#xfsv5_#s05k_#samehash_ls_all_dir_types.ref.log +++ b/test/064_#f70_#f70s1_#xfs_#xfsv5_#s05k_#samehash_ls_all_dir_types.ref.log @@ -1,7 +1,7 @@ /> umka_init /> disk_add ../img/xfs_samehash_s05k.raw hd0 -c 0 -/hd0: sector_size=512, capacity=2099200 (1025 MiB), num_partitions=1 -/hd0/1: fs=xfs, start=2048 (1 MiB), length=2097152 (1 GiB) +/hd0: sector_size=512, capacity=2097152 (1 GiB), num_partitions=1 +/hd0/1: fs=xfs, start=2048 (1 MiB), length=2093056 (1022 MiB) /> ls70 /hd0/1/dir_sf status = 6 end_of_file, count = 4 total = 4