XFSQA 073 is still not correctly cleaning up $tmp,
this is because $tmp.source_dir is not an empty dir.
This change recursively deletes everything in $tmp.source_dir.
Not required for $tmp.loop as it is used as a loopback mountpoint.
the ignore external MKFS_OPTIONS change is no longer required,
as _scratch_mkfs_xfs now handles conflicting options.
Merge of master-melb:xfs-cmds:28863a by kenmcd.
This test enables dmapi return_on_destroy and captures dmapi events
generated by two create/removes. One with file attibutes set, one without.
A dmapi destroy event should be generated in both cases, however PV960928
has shown that it may not be when attributes are not set.
Merge of master-melb:xfs-cmds:28771a by kenmcd.
David Disseldorp [Thu, 17 May 2007 15:58:12 +0000 (15:58 +0000)]
Currently there are a few ways mkfs options are specified in XFSQA:
1) suite wide MKFS_OPTIONS are specified before tests are run
e.g.
vimes:/home/fsgqa/kali/xfsqa/xfstests # export MKFS_OPTIONS="-l size=100m"
2) test wide MKFS_OPTIONS are specified during a particular test
e.g. 119
export MKFS_OPTIONS="-l version=2,size=1200b,su=64k"
3) mkfs options are appended by a test at mkfs time
e.g. 083
_scratch_mkfs_xfs -dsize=$fsz,agcount=$ags >>$seq.full
(4) Another form of appending is just appending to MKFS_OPTIONS directly
e.g. 114:export MKFS_OPTIONS="$MKFS_OPTIONS -i parent=1"
115:export MKFS_OPTIONS="$MKFS_OPTIONS -i paths=1"
Conflicts between mkfs options specified with method 1 & 3 are common.
960377 XFSQA 041, 042 - mkfs fails with large log size MKFS_OPTIONS.
This change means if a mkfs fails where mkfs options have been appended by a test (method 3),
The mkfs is retried using only those options defined by the test.
occurances of method 4 (in test 114 & 115) are also changed to use method 3.
$seq.full logs the fact that a mkfs options conflict has occured.
Merge of master-melb:xfs-cmds:28601a by kenmcd.
append -i parent mkfs option using _scratch_mkfs_xfs -i parent...
rather than export MKFS_OPTIONS="$MKFS_OPTIONS -i parent=1.
this avoids mkfs option conflicts
Tim Shimmin [Thu, 5 Apr 2007 15:45:28 +0000 (15:45 +0000)]
Output wasn't deterministic. Remove bmap output from stdout,
just have going to seq.full.
Merge of master-melb:xfs-cmds:28376a by kenmcd.
Execute bits changed from --- to x--
Fix up bmap output. Meant to remove the testfile on every
test but forgot to. Also needed to truncate the files
in the 2nd group of tests which used resvsp so that
the length/eof was correct for the test.
Tim Shimmin [Wed, 4 Apr 2007 03:54:24 +0000 (03:54 +0000)]
Some experimentation for pv#962014 doing prealloc, direct write, buffered read etc...
Add more here if come up with other ideas.
Merge of master-melb:xfs-cmds:28351a by kenmcd.
Some experimentation for pv#962014 doing prealloc, direct write, buffered read etc...
Add more here if come up with other ideas.
This change makes test 041 function correctly other blocks sizes, not just 4096.
The FS bsize is extracted from _filter_mkfs and then used to calculate growfs "destination" size.
Merge of master-melb:xfs-cmds:28222a by kenmcd.
calculate one meg in blocks, then use that value to calculate grow-to values.
Lachlan McIlroy [Thu, 8 Mar 2007 03:02:20 +0000 (03:02 +0000)]
fsx was calling vfprintf twice without resetting the va_list argument
Merge of master-melb:xfs-cmds:28212a by kenmcd.
fsx was calling vfprintf twice without resetting the va_list argument and
this caused a segfault on the second call. Now uses one call to vsnprintf
to print to a buffer and uses that multiple times.
Tim Shimmin [Mon, 12 Feb 2007 05:08:57 +0000 (05:08 +0000)]
Put the output of fsx into seq.full and output all of seq.full on failure.
Just to give more context around the error if we get one.
Merge of master-melb:xfs-cmds:28068a by kenmcd.
Put the output of fsx into seq.full and output all of seq.full on failure.
Just to give more context around the error if we get one.
_check_sids previously grepped the entire output of dm_getall_sessions for sids, which is:
ret=dm_getall_sessions return value
rnelem=number of sessions
sids="sid1 sid2 ... sidn "
If the session id of a previously destroyed session matches the current number of sessions (rnelem),
then _check_sids() $PREV_DESTROYED_SID will _not_ flag ERROR: SID(s) not created.
This fix also makes _check_sids() not rely on sids being consecutive. DMF may be running on a FS in background.
Tested on Linux and Irix.
Merge of master-melb:xfs-cmds:28043a by kenmcd.
change _check_sids to go through sids line 1 by 1 checking for matches
XFSQA 122 on machines with xfs_lazy_sb.patch have failed due to the addition of __be32 agf_btreeblks to xfs_agf_t.
This change causes 122 detect whether the patch is installed by greping for lazy count in mkfs output, the xfs_agf_t size is then filtered based on the patch status.
The original intention was to check /lib/modules/$(uname -r)/source/fs/xfs/xfs_ag.h for btreeblks and filter on this, however the kernel source is not a prereq for XFSQA.
Merge of master-melb:xfs-cmds:28014a by kenmcd.
pipe get_structs.c output through _type_size_filter to filter out known changes to xfs type sizes
David Disseldorp [Thu, 21 Dec 2006 02:54:16 +0000 (02:54 +0000)]
use _filter_repair when running xfs_repair. This stops timestamp mismatches from causing test failures.
Merge of master-melb:xfs-cmds:27793a by kenmcd.
Tim Shimmin [Fri, 1 Dec 2006 14:46:42 +0000 (14:46 +0000)]
Add some more tests for the attr2 test.
Do some EA and extent interaction at different formats due to different
number of extents and EAs.
It showed up the current attr2 bug.
With the proposed patch this doesn't happen.
Merge of master-melb:xfs-cmds:27606a by kenmcd.
Add some more tests for the attr2 test.
Do some EA and extent interaction at different formats due to different
number of extents and EAs.
It showed up the current attr2 bug.
With the proposed patch this doesn't happen.
Tim Shimmin [Tue, 17 Oct 2006 06:10:19 +0000 (06:10 +0000)]
test out attr2 with different number of extents and number
of EAs - with both sizes shrinking and enlarging and changing
formats. Need to fix up the output before setting live.
Merge of master-melb:xfs-cmds:27208a by kenmcd.
test out attr2 with different number of extents and number
of EAs - with both sizes shrinking and enlarging and changing
formats. Need to fix up the output before setting live.
David Disseldorp [Mon, 16 Oct 2006 06:14:00 +0000 (06:14 +0000)]
moved _mount_ops_minus_o_comma_replace to _mount routine, to filter all mount requests for multiple -o's
Merge of master-melb:xfs-cmds:27199a by kenmcd.
David Disseldorp [Fri, 13 Oct 2006 03:54:57 +0000 (03:54 +0000)]
irix is fussy about how it is fed its mount options
- multiple -o's are not allowed
- no spaces between comma delimitered options
added sed script replaces all -o's (except the first) with a comma
Merge of master-melb:xfs-cmds:27184a by kenmcd.
Vlad Apostolov [Mon, 2 Oct 2006 15:47:03 +0000 (15:47 +0000)]
pv 955274 - Limit the offset passed to dm_write_invis() to the file size to avoid
EINVAL error. Fix u_char to char comparison. Print out hex instead of
char for nonprintable characters.
Merge of master-melb:xfs-cmds:27094a by kenmcd.
pv 955274 - Limit the offset passed to dm_write_invis() to the file size to avoid
EINVAL error. Fix u_char to char comparison. Print out hex instead of
char for nonprintable characters.
pv 955274 - Limit the random generated file size attribute to 1 TB (if size is too big the kernel panics)
Merge of master-melb:xfs-cmds:27060a by kenmcd.
pv 955274 - Limit the random generated file size attribute to 1 TB (if size is too big the kernel panics)