diff options
author | Neil Brown <neilb@suse.de> | 2006-12-14 07:32:57 +0100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-12-14 07:32:57 +0100 |
commit | beae1dfe2e5a3f11e6e52a93fbf617d644708415 (patch) | |
tree | ca12b130f76d63e7156e43ac89d76c11b2c140b8 /test | |
parent | Don't hold md device open for so long in --monitor mode (diff) | |
download | mdadm-beae1dfe2e5a3f11e6e52a93fbf617d644708415.tar.xz mdadm-beae1dfe2e5a3f11e6e52a93fbf617d644708415.zip |
Central calls to ioctl BLKGETSIZE
Instead of opencoding the same thing everywhere.
Diffstat (limited to 'test')
-rw-r--r-- | test | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -65,6 +65,7 @@ fi # mdadm always adds --quiet, and we want to see any unexpected messages mdadm() { + rm -f $targetdir/stderr case $* in *-C* ) $mdadm 2> $targetdir/stderr --quiet "$@" --auto=yes;; * ) $mdadm 2> $targetdir/stderr --quiet "$@" @@ -161,6 +162,7 @@ for script in tests/$prefix tests/$prefix*[^~] do if [ -f "$script" ] then + rm -f $targetdir/stderr # source script in a subshell, so it has access to our # namespace, but cannot change it. if ( set -ex ; . $script ) 2> $targetdir/log |