New find action -hide, new find test -hidden

This commit is contained in:
2010-06-20 07:22:24 +00:00
parent ea5edd0a59
commit 3e0c8581fa
11 changed files with 177 additions and 53 deletions

View File

@ -870,6 +870,25 @@ int Findjob_set_lba_range(struct FindjoB *o, int start_lba, int count,
}
int Findjob_set_test_hidden(struct FindjoB *o, int mode, int flag)
{
struct ExprtesT *t;
int ret;
ret= Findjob_default_and(o, 0);
if(ret <= 0)
return(ret);
t= o->cursor->test;
t->test_type= 17;
t->arg1= calloc(sizeof(int), 1);
if(t->arg1 == NULL)
return(-1);
*((int *) t->arg1)= mode;
return(1);
}
/* @param value -1= files without ACL, 1= only files with ACL
*/
int Findjob_set_acl_filter(struct FindjoB *o, int value, int flag)