mirror of
https://github.com/schoebel/mars
synced 2025-02-21 14:56:55 +00:00
infra: prepare subtree creation
This commit is contained in:
parent
5e97d05ecb
commit
59c9cedeeb
@ -6318,7 +6318,8 @@ static int _main_thread(void *data)
|
||||
"/mars",
|
||||
sizeof(struct mars_dent),
|
||||
main_checker, main_worker,
|
||||
mars_global, 3);
|
||||
mars_global,
|
||||
3, true);
|
||||
mars_global->deleted_border = mars_global->deleted_min;
|
||||
MARS_DBG("-------- worker deleted_min = %d status = %d\n",
|
||||
mars_global->deleted_min, status);
|
||||
|
@ -141,7 +141,14 @@ extern void bind_to_dent(struct mars_dent *dent, struct say_channel **ch);
|
||||
typedef int (*mars_dent_checker_fn)(struct mars_dent *parent, const char *name, int namlen, unsigned int d_type, int *prefix, int *serial, bool *use_channel);
|
||||
typedef int (*mars_dent_worker_fn)(struct mars_global *global, struct mars_dent *dent, bool prepare, bool direction);
|
||||
|
||||
extern int mars_dent_work(struct mars_global *global, char *dirname, int allocsize, mars_dent_checker_fn checker, mars_dent_worker_fn worker, void *buf, int maxdepth);
|
||||
extern int mars_dent_work(struct mars_global *global,
|
||||
char *dirname,
|
||||
int allocsize,
|
||||
mars_dent_checker_fn checker,
|
||||
mars_dent_worker_fn worker,
|
||||
void *buf,
|
||||
int maxdepth,
|
||||
bool use_subtree);
|
||||
extern int mars_get_dent_list(struct mars_global *global,
|
||||
char *path_list,
|
||||
int allocsize,
|
||||
|
@ -1930,7 +1930,8 @@ int mars_dent_work(struct mars_global *global,
|
||||
mars_dent_checker_fn checker,
|
||||
mars_dent_worker_fn worker,
|
||||
void *buf,
|
||||
int maxdepth)
|
||||
int maxdepth,
|
||||
bool use_subtree)
|
||||
{
|
||||
static int version = 0;
|
||||
char *startname = brick_strdup(path_list);
|
||||
|
Loading…
Reference in New Issue
Block a user