2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2008 Christoph Hellwig.
7 # Check that d_off can be represented in a 32 bit long type without
8 # truncation. Note that this test will always succeed on a 64 bit
9 # systems where there is no smaller off_t.
11 # Based on a testcase from John Stanley <jpsinthemix@verizon.net>.
13 # http://oss.sgi.com/bugzilla/show_bug.cgi?id=808
16 _begin_fstest dir auto quick
18 # Override the default cleanup function.
24 # Import common functions.
27 # real QA test starts here
31 bitsperlong=`$here/src/feature -w`
32 if [ "$bitsperlong" -ne 32 ]; then
33 _notrun "This test is only valid on 32 bit machines"
38 touch $TEST_DIR/ttt/$n;
40 $here/src/t_dir_offset $TEST_DIR/ttt