commit ee371c36e6e24e1882f89696a2961af6897e0149 Author: Alberto Bertogli Date: Sun Apr 4 03:44:17 2010 -0300 Version 1.01 commit ccbc5c76c8080e241d764a839355494ae4634506 Author: Alberto Bertogli Date: Sun Apr 4 03:03:03 2010 -0300 tests/stress: Add a --force option Sometimes it can be useful to force the tests to run, even if conflicting options are selected. Even if they're known to be broken, the way they break can be interesting when developing. This patch adds an --force option to jiostress to let the user do that in an easy way. Signed-off-by: Alberto Bertogli commit 874131deeecbd57ef2871ac065cf4dbe422bc266 Author: Alberto Bertogli Date: Sun Apr 4 02:57:40 2010 -0300 tests/stress: Make main() return instead of sys.exit() The sys.exit() are leftovers from the previous code, make it tidy by changing them to return statements. Signed-off-by: Alberto Bertogli commit 2b4c0f1a7cd964a2143a2d4455ea02f3ec427cf3 Author: Alberto Bertogli Date: Sun Apr 4 02:54:27 2010 -0300 tests/stress: Make --fi and --nproc > 1 incompatible Due to the way the stress tests are performed (with extensive jfsck), --fi and --nproc are not really compatible, as it causes corruption reports that are not real. This patch makes the stress tests not run with that combination of options. Signed-off-by: Alberto Bertogli commit 5610990beaa4550b2c42d179f1beeb8e97a68639 Author: Alberto Bertogli Date: Sun Apr 4 02:41:42 2010 -0300 bindings/python: Use ssize_t for s# parameters Commit 9607741 (bindings/python: Add readv()/writev() support, 2009-07-13) defined PY_SSIZE_T_CLEAN, which made PyArg_ParseTuple()'s s# parameters use ssize_t for the string length, instead of int (which is the default). That was needed for writev(). However, existing instances of s# were not converted, and caused subtle but worrying memory corruption. This patch fixes that by using ssize_t in the appropriate places. Signed-off-by: Alberto Bertogli commit 1ee54b0c2e244ddcba943208bb19ddb66ece2b60 Author: Alberto Bertogli Date: Thu Sep 24 23:38:57 2009 -0300 tests/stress: Put decoded status information when a process dies The status without decoding is not very useful, so this patch puts the decoded information to make it easier to read. Signed-off-by: Alberto Bertogli commit 113d9b923874b008593c5178d8504295640bf527 Author: Alberto Bertogli Date: Thu Sep 24 23:37:21 2009 -0300 tests/stress: Reduce the max operation length This patch reduces the maximum operation length, because the defaults were too big and caused contention very easily when using multiple processes. Signed-off-by: Alberto Bertogli commit b52344eece87fd37ca5b747451ac20908079cda8 Author: Alberto Bertogli Date: Thu Sep 24 23:06:10 2009 -0300 tests/stress: Fail the test when a stresser subprocess dies We will also keep the file, just in case it's needed for debug purposes. Signed-off-by: Alberto Bertogli commit 4b8559829f9aa30846d6615a0223e42eba100dc2 Author: Alberto Bertogli Date: Thu Sep 24 23:05:11 2009 -0300 tests/stress: Make the default number of operations smaller Now that we have more complex transactions, 500 is too slow for a default. This patch makes it 100, and while at it reorders the --nproc option. Signed-off-by: Alberto Bertogli commit 7249b479c168022f1080463839123567d5cfc7f1 Author: Alberto Bertogli Date: Thu Sep 24 22:42:19 2009 -0300 tests/stress: Add an option to keep the file, and remove it by default Signed-off-by: Alberto Bertogli commit 3bedaaef51ae4f8a47433ce4b18822819d5c6f23 Author: Alberto Bertogli Date: Thu Sep 24 21:12:43 2009 -0300 tests/stress: Remove short options for --fi and --as They're not really useful, so don't waste a letter on them. Signed-off-by: Alberto Bertogli commit 3da17d539ddaaa8f89507b38ee2d905b8e6f5af9 Author: Alberto Bertogli Date: Thu Sep 24 21:12:11 2009 -0300 tests/stress: Support running multiple processes This patch adds support for multiple processes in the stress test. It also adds support for two new options (besides the number of processes to use), that are useful for running several instances of the stress test in parallel. Signed-off-by: Alberto Bertogli commit 0b8fe71c5d789d9484905a300afaafe1af25b4a3 Author: Alberto Bertogli Date: Thu Sep 24 21:08:04 2009 -0300 libjio: Always lock ranges in the same order We must always lock in the same order to avoid deadlocks. I don't know how could I've missed this all this time. For more details, see the big comment inside the patch. Signed-off-by: Alberto Bertogli commit 57f826ce6f8c83a0227630284dc4673f61b459af Author: Alberto Bertogli Date: Thu Sep 24 20:45:28 2009 -0300 jfsck(): Lock the file before operating on it Callers of jfsck() must not call it when the file is in use. However, it doesn't hurt to protect from it by locking the file before using it, to protect unwary users. The close() takes care of the unlock. Note that if the process has locks held on the file, it's already in trouble because it will loose them anyway as we're re-opening and closing the file, so this patch does not change that situation. Signed-off-by: Alberto Bertogli commit 3e389f6cc617cb6e8dd2dc309ae566fd24709125 Author: Alberto Bertogli Date: Wed Sep 16 16:28:26 2009 -0300 jiostress: Use optparse to parse command line options Signed-off-by: Alberto Bertogli