Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to get condensed tree of modified blocks between two txg #6

Merged
merged 6 commits into from
Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/uzfs_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ sbin_PROGRAMS = uzfs_test
uzfs_test_SOURCES = \
uzfs_test.c \
uzfs_test_sync.c \
uzfs_zvol_zap.c
uzfs_zvol_zap.c \
uzfs_txg_diff.c

uzfs_test_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \
Expand Down
7 changes: 5 additions & 2 deletions cmd/uzfs_test/uzfs_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ uzfs_test_info_t uzfs_tests[] = {
{ uzfs_zvol_zap_operation, "uzfs zap operation test" },
{ replay_fn, "zvol replay test" },
{ unit_test_fn, "zvol read/write verification test"},
{ uzfs_txg_diff_verifcation_test,
"test to verify modified blocks between two txg for zvol" },
{ uzfs_txg_diff_tree_test, "txg_diff_tree functionality test" },
};

uint64_t metaverify = 0;
Expand Down Expand Up @@ -326,7 +329,7 @@ static void usage(int num)

printf("uzfs_test -t <total_time_in_sec> -a <active data size>"
" -b <block_size> -i <io size> -v <vol size> -l(for log device)"
" -m <metadata to verify during replay>"
" -m <metadata to verify during replay> -n <number of iterations>"
" -s(for sync on) -S(for silent) -V <data to verify during replay>"
" -w(for write during replay) -T <test id>\n");

Expand Down Expand Up @@ -401,7 +404,7 @@ static void process_options(int argc, char **argv)
uint64_t val = 0;
uint64_t num_tests = sizeof (uzfs_tests) / sizeof (uzfs_tests[0]);

while ((opt = getopt(argc, argv, "a:b:i:lm:sSt:v:V:wT:n:")) != EOF) {
while ((opt = getopt(argc, argv, "a:b:i:lm:n:sSt:T:v:V:w")) != EOF) {
if (optarg != NULL)
val = nicenumtoull(optarg);
switch (opt) {
Expand Down
Loading