Lines Matching refs:vec
68 static errcode_t create_test_list(blk_t *vec, badblocks_list *ret)
79 for (i=0; vec[i]; i++) {
80 retval = ext2fs_badblocks_list_add(bb, vec[i]);
121 static void validate_test_seq(badblocks_list bb, blk_t *vec)
125 for (i = 0; vec[i]; i += 2) {
126 match = ext2fs_badblocks_list_test(bb, vec[i]);
127 if (match == vec[i+1])
133 printf("\tblock %u is %s --- %s\n", vec[i],
139 static void do_test_seq(badblocks_list bb, blk_t *vec)
143 for (i = 0; vec[i]; i += 2) {
144 switch (vec[i+1]) {
146 ext2fs_badblocks_list_add(bb, vec[i]);
147 match = ext2fs_badblocks_list_test(bb, vec[i]);
148 printf("Adding block %u --- now %s\n", vec[i],
156 ext2fs_badblocks_list_del(bb, vec[i]);
157 match = ext2fs_badblocks_list_test(bb, vec[i]);
158 printf("Removing block %u --- now %s\n", vec[i],
159 ext2fs_badblocks_list_test(bb, vec[i]) ?