| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: t_high_ino_big_file.sh,v 1.4 2014/07/07 22:06:02 pgoyette Exp $ | | 1 | # $NetBSD: t_high_ino_big_file.sh,v 1.5 2023/12/30 13:09:24 martin Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2014 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2014 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # Redistribution and use in source and binary forms, with or without | | 6 | # Redistribution and use in source and binary forms, with or without |
7 | # modification, are permitted provided that the following conditions | | 7 | # modification, are permitted provided that the following conditions |
8 | # are met: | | 8 | # are met: |
9 | # 1. Redistributions of source code must retain the above copyright | | 9 | # 1. Redistributions of source code must retain the above copyright |
10 | # notice, this list of conditions and the following disclaimer. | | 10 | # notice, this list of conditions and the following disclaimer. |
11 | # 2. Redistributions in binary form must reproduce the above copyright | | 11 | # 2. Redistributions in binary form must reproduce the above copyright |
12 | # notice, this list of conditions and the following disclaimer in the | | 12 | # notice, this list of conditions and the following disclaimer in the |
13 | # documentation and/or other materials provided with the distribution. | | 13 | # documentation and/or other materials provided with the distribution. |
14 | # | | 14 | # |
| @@ -59,27 +59,27 @@ | | | @@ -59,27 +59,27 @@ |
59 | # DAMAGE. | | 59 | # DAMAGE. |
60 | # | | 60 | # |
61 | # ------------------------------------------------------------------------ | | 61 | # ------------------------------------------------------------------------ |
62 | # This is the BSD license as stated July 22 1999 with | | 62 | # This is the BSD license as stated July 22 1999 with |
63 | # <OWNER>="Thomas Schmitt (scdbackup@gmx.net)", | | 63 | # <OWNER>="Thomas Schmitt (scdbackup@gmx.net)", |
64 | # <ORGANIZATION>="Thomas Schmitt" and <YEAR>="1999" | | 64 | # <ORGANIZATION>="Thomas Schmitt" and <YEAR>="1999" |
65 | # an Open Source license approved by opensource.org | | 65 | # an Open Source license approved by opensource.org |
66 | # | | 66 | # |
67 | | | 67 | |
68 | mntpnt="" | | 68 | mntpnt="" |
69 | | | 69 | |
70 | atf_test_case pr_kern_48787 cleanup | | 70 | atf_test_case pr_kern_48787 cleanup |
71 | pr_kern_48787_head() { | | 71 | pr_kern_48787_head() { |
72 | atf_set "descr" "Verifies 32bit overflow isssues from PR kern/48787 are fixed" | | 72 | atf_set "descr" "Verifies 32bit overflow issues from PR kern/48787 are fixed" |
73 | atf_set "require.user" "root" | | 73 | atf_set "require.user" "root" |
74 | atf_set "require.progs" "rump_cd9660 bunzip2 stat" | | 74 | atf_set "require.progs" "rump_cd9660 bunzip2 stat" |
75 | atf_set "timeout" 6000 | | 75 | atf_set "timeout" 6000 |
76 | } | | 76 | } |
77 | | | 77 | |
78 | pr_kern_48787_body() { | | 78 | pr_kern_48787_body() { |
79 | avail=$( df -Pk . | awk '{if (NR==2) print $4}' ) | | 79 | avail=$( df -Pk . | awk '{if (NR==2) print $4}' ) |
80 | if [ $avail -lt 4500000 ]; then | | 80 | if [ $avail -lt 4500000 ]; then |
81 | atf_skip "not enough free disk space, have ${avail} Kbytes, need ~ 4500000 Kbytes" | | 81 | atf_skip "not enough free disk space, have ${avail} Kbytes, need ~ 4500000 Kbytes" |
82 | fi | | 82 | fi |
83 | bunzip2 < $(atf_get_srcdir)/pr_48787.image.bz2 > pr_48787.image | | 83 | bunzip2 < $(atf_get_srcdir)/pr_48787.image.bz2 > pr_48787.image |
84 | mntpnt=$(pwd)/mnt | | 84 | mntpnt=$(pwd)/mnt |
85 | mkdir ${mntpnt} | | 85 | mkdir ${mntpnt} |