You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
572 B
28 lines
572 B
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* erofs-utils/include/erofs/exclude.h
|
|
*
|
|
* Created by Li Guifu <bluce.lee@aliyun.com>
|
|
*/
|
|
#ifndef __EROFS_EXCLUDE_H
|
|
#define __EROFS_EXCLUDE_H
|
|
|
|
#include <sys/types.h>
|
|
#include <regex.h>
|
|
|
|
struct erofs_exclude_rule {
|
|
struct list_head list;
|
|
|
|
char *pattern;
|
|
regex_t reg;
|
|
};
|
|
|
|
void erofs_exclude_set_root(const char *rootdir);
|
|
void erofs_cleanup_exclude_rules(void);
|
|
|
|
int erofs_parse_exclude_path(const char *args, bool is_regex);
|
|
struct erofs_exclude_rule *erofs_is_exclude_path(const char *dir,
|
|
const char *name);
|
|
#endif
|
|
|