mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb:tests: Fix code spelling
Best reviewed with: `git show --word-diff` Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
This commit is contained in:
parent
7aeed61dc5
commit
9a37aa3969
@ -54,7 +54,7 @@ echo "Checking if CIFS connection is tracked by CTDB on test node..."
|
|||||||
wait_until 10 check_tickles $test_node $test_ip $test_port $src_socket
|
wait_until 10 check_tickles $test_node $test_ip $test_port $src_socket
|
||||||
|
|
||||||
# This is almost immediate. However, it is sent between nodes
|
# This is almost immediate. However, it is sent between nodes
|
||||||
# asynchonously, so it is worth checking...
|
# asynchronously, so it is worth checking...
|
||||||
echo "Wait until CIFS connection is tracked by CTDB on all nodes..."
|
echo "Wait until CIFS connection is tracked by CTDB on all nodes..."
|
||||||
try_command_on_node $test_node "$CTDB listnodes | wc -l"
|
try_command_on_node $test_node "$CTDB listnodes | wc -l"
|
||||||
numnodes="$out"
|
numnodes="$out"
|
||||||
|
@ -44,7 +44,7 @@ echo "store key(test1) data(newvalue1)"
|
|||||||
echo '"test1" "newvalue1"' | try_command_on_node -i 0 $CTDB ptrans "$TESTDB"
|
echo '"test1" "newvalue1"' | try_command_on_node -i 0 $CTDB ptrans "$TESTDB"
|
||||||
|
|
||||||
# Continue node
|
# Continue node
|
||||||
echo "contine node 1"
|
echo "continue node 1"
|
||||||
try_command_on_node 1 $CTDB continue
|
try_command_on_node 1 $CTDB continue
|
||||||
|
|
||||||
wait_until_node_has_status 1 notstopped
|
wait_until_node_has_status 1 notstopped
|
||||||
|
@ -62,7 +62,7 @@ echo "Remove recovery lock"
|
|||||||
rm "$reclock"
|
rm "$reclock"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# This will mean an election has taken place and a recovery has occured
|
# This will mean an election has taken place and a recovery has occurred
|
||||||
wait_until_generation_has_changed "$test_node"
|
wait_until_generation_has_changed "$test_node"
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
|
@ -130,7 +130,7 @@ Test and debugging variable options
|
|||||||
|
|
||||||
CTDB_TEST_SAMBA_VERSION=VERSION
|
CTDB_TEST_SAMBA_VERSION=VERSION
|
||||||
|
|
||||||
VERSION is a 32-bit number containg the Samba major
|
VERSION is a 32-bit number containing the Samba major
|
||||||
version in the most significant 16 bits and the minor
|
version in the most significant 16 bits and the minor
|
||||||
version in the least significant 16 bits. This can be
|
version in the least significant 16 bits. This can be
|
||||||
used to test CTDB's checking of incompatible versions
|
used to test CTDB's checking of incompatible versions
|
||||||
|
@ -123,7 +123,7 @@ EOF
|
|||||||
unit_test cluster_mutex_test lock-io-timeout "$helper 5 7" "$lockfile" 1 2
|
unit_test cluster_mutex_test lock-io-timeout "$helper 5 7" "$lockfile" 1 2
|
||||||
|
|
||||||
|
|
||||||
test_case "Recheck on, ping on, child waits, child blocks causing ping timout"
|
test_case "Recheck on, ping on, child waits, child blocks causing ping timeout"
|
||||||
ok <<EOF
|
ok <<EOF
|
||||||
LOCK
|
LOCK
|
||||||
ctdb_mutex_fcntl_helper: ping timeout from lock test child
|
ctdb_mutex_fcntl_helper: ping timeout from lock test child
|
||||||
|
@ -41,7 +41,7 @@ parse_options()
|
|||||||
parse_options "$@"
|
parse_options "$@"
|
||||||
|
|
||||||
for i in ${FAKE_RPCINFO_SERVICES}; do
|
for i in ${FAKE_RPCINFO_SERVICES}; do
|
||||||
# This is stupidly cummulative, but needs to happen after the
|
# This is stupidly cumulative, but needs to happen after the
|
||||||
# initial split of the list above.
|
# initial split of the list above.
|
||||||
IFS="${IFS}:"
|
IFS="${IFS}:"
|
||||||
# Want glob expansion
|
# Want glob expansion
|
||||||
|
@ -78,7 +78,7 @@ else
|
|||||||
comment = fake share $bi
|
comment = fake share $bi
|
||||||
guest ok = no
|
guest ok = no
|
||||||
read only = no
|
read only = no
|
||||||
browseable = yes
|
browsable = yes
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -304,7 +304,7 @@ local_daemons_ssh ()
|
|||||||
|
|
||||||
_nodes="${directory}/nodes"
|
_nodes="${directory}/nodes"
|
||||||
|
|
||||||
# IP adress of node. onnode can pass hostnames but not in these tests
|
# IP address of node. onnode can pass hostnames but not in these tests
|
||||||
_ip="$1" ; shift
|
_ip="$1" ; shift
|
||||||
# "$*" is command
|
# "$*" is command
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ static void test3(void)
|
|||||||
assert(ret != -1 && (size_t)ret == (req_len >> 1) - 1);
|
assert(ret != -1 && (size_t)ret == (req_len >> 1) - 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* the packet is still incomplete and connot be processed
|
* the packet is still incomplete and cannot be processed
|
||||||
* but the packet data had to be moved in the buffer in order
|
* but the packet data had to be moved in the buffer in order
|
||||||
* to fetch the new 199 bytes -> offset must be 0 now.
|
* to fetch the new 199 bytes -> offset must be 0 now.
|
||||||
*/
|
*/
|
||||||
|
@ -63,7 +63,7 @@ struct db_test_tool_context {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If this is ever consolodated into a larger test tool then these
|
* If this is ever consolidated into a larger test tool then these
|
||||||
* forward declarations can be moved to an include file
|
* forward declarations can be moved to an include file
|
||||||
*/
|
*/
|
||||||
int db_test_tool_init(TALLOC_CTX *mem_ctx,
|
int db_test_tool_init(TALLOC_CTX *mem_ctx,
|
||||||
|
@ -39,7 +39,7 @@ static void usage(const char *prog)
|
|||||||
" %s chmod enable <scriptdir> <scriptname>\n",
|
" %s chmod enable <scriptdir> <scriptname>\n",
|
||||||
prog);
|
prog);
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
" %s chmod diable <scriptdir> <scriptname>\n",
|
" %s chmod disable <scriptdir> <scriptname>\n",
|
||||||
prog);
|
prog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ static struct node_map *nodemap_init(TALLOC_CTX *mem_ctx)
|
|||||||
* <PNN> <FLAGS> [RECMASTER] [CURRENT] [CAPABILITIES]
|
* <PNN> <FLAGS> [RECMASTER] [CURRENT] [CAPABILITIES]
|
||||||
* EOF or a blank line terminates input.
|
* EOF or a blank line terminates input.
|
||||||
*
|
*
|
||||||
* By default, capablities for each node are
|
* By default, capabilities for each node are
|
||||||
* CTDB_CAP_RECMASTER|CTDB_CAP_LMASTER. These 2
|
* CTDB_CAP_RECMASTER|CTDB_CAP_LMASTER. These 2
|
||||||
* capabilities can be faked off by adding, for example,
|
* capabilities can be faked off by adding, for example,
|
||||||
* -CTDB_CAP_RECMASTER.
|
* -CTDB_CAP_RECMASTER.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
simple rb test tool
|
simple rb test tool
|
||||||
|
|
||||||
Copyright (C) Ronnie Sahlberg 2007
|
Copyright (C) Ronnie Sahlberg 2007
|
||||||
@ -38,7 +38,7 @@ static void start_timer(void)
|
|||||||
static double end_timer(void)
|
static double end_timer(void)
|
||||||
{
|
{
|
||||||
gettimeofday(&tp2,NULL);
|
gettimeofday(&tp2,NULL);
|
||||||
return (tp2.tv_sec + (tp2.tv_usec*1.0e-6)) -
|
return (tp2.tv_sec + (tp2.tv_usec*1.0e-6)) -
|
||||||
(tp1.tv_sec + (tp1.tv_usec*1.0e-6));
|
(tp1.tv_sec + (tp1.tv_usec*1.0e-6));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ static int random_traverse(void *p, void *d)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t calc_checksum = 0;
|
static uint32_t calc_checksum = 0;
|
||||||
static int traverse_checksum(void *p, void *d)
|
static int traverse_checksum(void *p, void *d)
|
||||||
{
|
{
|
||||||
int i,j,k;
|
int i,j,k;
|
||||||
@ -262,8 +262,8 @@ int main(int argc, const char *argv[])
|
|||||||
i=0;
|
i=0;
|
||||||
start_timer();
|
start_timer();
|
||||||
checksum = 0;
|
checksum = 0;
|
||||||
/* add and delete nodes from a 3 level tree fro 60 seconds.
|
/* Add and delete nodes from a 3 level tree for 60 seconds.
|
||||||
each time a node is added or deleted, traverse the tree and
|
Each time a node is added or deleted, traverse the tree and
|
||||||
compute a checksum over the data stored in the tree and compare this
|
compute a checksum over the data stored in the tree and compare this
|
||||||
with a checksum we keep which contains what the checksum should be
|
with a checksum we keep which contains what the checksum should be
|
||||||
*/
|
*/
|
||||||
@ -286,7 +286,7 @@ int main(int argc, const char *argv[])
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((str=trbt_lookuparray32(tree, 3, key)) != NULL) {
|
if ((str=trbt_lookuparray32(tree, 3, key)) != NULL) {
|
||||||
/* this node does exist in the tree, delete
|
/* this node does exist in the tree, delete
|
||||||
it and update the checksum accordingly
|
it and update the checksum accordingly
|
||||||
*/
|
*/
|
||||||
talloc_free(str);
|
talloc_free(str);
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
* This creates 20 processes, 10 at normal priority and 10 at realtime
|
* This creates 20 processes, 10 at normal priority and 10 at realtime
|
||||||
* priority, all taking the lock, being killed and recovering the lock.
|
* priority, all taking the lock, being killed and recovering the lock.
|
||||||
*
|
*
|
||||||
* If while runnig (c) the processes block, it might mean that a futex wakeup
|
* If while running (c) the processes block, it might mean that a futex wakeup
|
||||||
* was lost, or that the handoff of EOWNERDEAD did not happen correctly. In
|
* was lost, or that the handoff of EOWNERDEAD did not happen correctly. In
|
||||||
* either case you can debug the resulting mutex like this:
|
* either case you can debug the resulting mutex like this:
|
||||||
*
|
*
|
||||||
|
@ -297,7 +297,7 @@ static void test(unsigned long parent_timeout,
|
|||||||
parent_blocking_sleep_time);
|
parent_blocking_sleep_time);
|
||||||
assert(ret == parent_result);
|
assert(ret == parent_result);
|
||||||
|
|
||||||
/* Close to mimick exit, so child status can be checked below */
|
/* Close to mimic exit, so child status can be checked below */
|
||||||
close(fd[0]);
|
close(fd[0]);
|
||||||
|
|
||||||
/* Abort if child failed */
|
/* Abort if child failed */
|
||||||
|
@ -353,7 +353,7 @@ static void test(const char *write_data,
|
|||||||
}
|
}
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
/* Close to mimick exit, so child status can be checked below */
|
/* Close to mimic exit, so child status can be checked below */
|
||||||
close(fd[1]);
|
close(fd[1]);
|
||||||
|
|
||||||
waitpid(pid, &wstatus, 0);
|
waitpid(pid, &wstatus, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user