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)
initialize extra_mount_options as blank string in _check_xfs_filesystem to prevent mount arg duplication every test
Merge of master-melb:xfs-cmds:26931a by kenmcd.
fixed mount arg duplication causing irix mounts to fail
David Disseldorp [Mon, 28 Aug 2006 15:39:03 +0000 (15:39 +0000)]
fixed order of quota reports to always follow:
[ROOT]
[NAME]
rather than depend on the order of /etc/passwd & /etc/groups
Merge of master-melb:xfs-cmds:26878a by kenmcd.
fixed order of quota reports to always follow:
[ROOT]
[NAME]
rather than depend on the order of /etc/passwd & /etc/groups
Vlad Apostolov [Mon, 28 Aug 2006 03:52:59 +0000 (03:52 +0000)]
pv 955274, rv bnaujok - add 1sec delay between file creation and changing its
attribute via dm_set_dmattr(). If the machine is too fast the ctime doesn't
change between create and dm_set_dmattr() and the test fails.
Merge of master-melb:xfs-cmds:26870a by kenmcd.
pv 955274, rv bnaujok - add 1sec delay between file creation and changing its
attribute via dm_set_dmattr(). If the machine is too fast the ctime doesn't
change between create and dm_set_dmattr() and the test fails.
Nathan Scott [Tue, 22 Aug 2006 03:55:50 +0000 (03:55 +0000)]
Fix test 123 (assumed fsgqa shell was sh, now make it so), and 130.out which had incorrect golden output.
Merge of master-melb:xfs-cmds:26835a by kenmcd.
Nathan Scott [Mon, 21 Aug 2006 03:54:04 +0000 (03:54 +0000)]
Make test 050 output deterministic - cater for #days flipping to six (correctly), and extra space being allocated to id zero (also correctly).
Merge of master-melb:xfs-cmds:26820a by kenmcd.
Allan Randall [Fri, 4 Aug 2006 13:47:09 +0000 (13:47 +0000)]
Added checks for variables (QA Machines only) allowing them to be set from the command line without being overwritten
Merge of master-melb:xfs-cmds:26652a by kenmcd.
Added checks for variables (QA Machines only) allowing them to be set from the command line without being overwritten