New -find test -bad_outname, new -find action print_outname
This commit is contained in:
@ -864,8 +864,8 @@ int Findjob_set_damage_filter(struct FindjoB *o, int value, int flag)
|
||||
}
|
||||
|
||||
|
||||
int Findjob_set_lba_range(struct FindjoB *o, int start_lba, int count,
|
||||
int flag)
|
||||
int Findjob_set_num_filter(struct FindjoB *o, int test_type,
|
||||
int num1, int num2, int flag)
|
||||
{
|
||||
struct ExprtesT *t;
|
||||
int ret;
|
||||
@ -875,20 +875,31 @@ int Findjob_set_lba_range(struct FindjoB *o, int start_lba, int count,
|
||||
return(ret);
|
||||
|
||||
t= o->cursor->test;
|
||||
t->test_type= 4;
|
||||
t->test_type= test_type;
|
||||
t->arg1= calloc(sizeof(int), 1);
|
||||
t->arg2= calloc(sizeof(int), 1);
|
||||
if(t->arg1 == NULL || t->arg2 == NULL)
|
||||
return(-1);
|
||||
*((int *) t->arg1)= start_lba;
|
||||
if(start_lba > 0)
|
||||
*((int *) t->arg2)= start_lba + count - 1;
|
||||
else
|
||||
*((int *) t->arg2)= start_lba - count + 1;
|
||||
*((int *) t->arg1)= num1;
|
||||
*((int *) t->arg2)= num2;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int Findjob_set_lba_range(struct FindjoB *o, int start_lba, int count,
|
||||
int flag)
|
||||
{
|
||||
int ret, end_lba;
|
||||
|
||||
if(start_lba > 0)
|
||||
end_lba= start_lba + count - 1;
|
||||
else
|
||||
end_lba= start_lba - count + 1;
|
||||
ret= Findjob_set_num_filter(o, 4, start_lba, end_lba, 0);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
int Findjob_set_test_hidden(struct FindjoB *o, int mode, int flag)
|
||||
{
|
||||
struct ExprtesT *t;
|
||||
|
Reference in New Issue
Block a user