From: Timothy Shimmin <tes@sgi.com>
To: xfs-oss <xfs@oss.sgi.com>
Subject: review: xfstests/192 atime test
Date: Tue, 11 Nov 2008 17:11:16 +1100 [thread overview]
Message-ID: <49192204.3040300@sgi.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 95 bytes --]
Attached simple atime test.
192.out and group file would be added appropriately.
Thanks.
--Tim
[-- Attachment #2: 192 --]
[-- Type: text/plain, Size: 1285 bytes --]
#! /bin/sh
# FS QA Test No. 192
#
# Simple test of atime - ensure it is persistent after unmount
#
#-----------------------------------------------------------------------
# Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
#-----------------------------------------------------------------------
#
# creator
owner=tes@emu.melbourne.sgi.com
seq=`basename $0`
echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=1 # failure is the default!
trap "exit \$status" 0 1 2 3 15
_access_time()
{
stat --format=%X $1
}
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
# real QA test starts here
_supported_fs xfs udf nfs
_supported_os Linux
delay=150
testfile=$TEST_DIR/testfile
rm -f $testfile
rm -f $seq.full
echo test >$testfile
time1=`_access_time $testfile | tee -a $seq.full`
echo "sleep for $delay"
sleep $delay # sleep to allow time to move on for access
cat $testfile
time2=`_access_time $testfile | tee -a $seq.full`
cd /
umount $TEST_DIR
mount $TEST_DIR
time3=`_access_time $testfile | tee -a $seq.full`
delta1=`expr $time2 - $time1`
delta2=`expr $time3 - $time1`
echo "delta1 - access time after sleep in-core: $delta1"
echo "delta2 - access time after sleep on-disk: $delta2"
# success, all done
status=0
exit
next reply other threads:[~2008-11-11 6:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 6:11 Timothy Shimmin [this message]
2008-11-11 22:38 ` review: xfstests/192 atime test Dave Chinner
2008-11-11 23:22 ` Timothy Shimmin
2008-11-11 23:36 ` Timothy Shimmin
2008-12-08 4:52 ` Timothy Shimmin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49192204.3040300@sgi.com \
--to=tes@sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.