[PATCH] Make test 272 work for ext3
Jan Kara
jack at suse.cz
Thu Aug 16 04:14:35 CDT 2012
ext3 does not support direct IO for files with data journalling. This
confuses test 272. Make the test check whether open succeeds and perform
the writing only if it does.
Signed-off-by: Jan Kara <jack at suse.cz>
---
272 | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/272 b/272
index 26dfa3b..e39c52b 100755
--- a/272
+++ b/272
@@ -52,6 +52,12 @@ _workout()
echo "OP write_opt: $write_opt 4M, \
chattr_opt: $chattr_opt"
+ if [ "$write_opt" = "oflag=direct" ]; then
+ # Some filesystems don't support direct IO
+ # in some cases, check for that
+ xfs_io -F -d -f -c "" $SCRATCH_MNT/file.$idx \
+ >> $seq.full 2>&1 || continue
+ fi
dd if=/dev/zero of=$SCRATCH_MNT/file.$idx \
bs=1M count=4 $write_opt \
>> $seq.full 2>&1 || exit
--
1.7.1
--rwEMma7ioTxnRzrJ--
More information about the xfs
mailing list