• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * erofs-utils/include/erofs/exclude.h
4  *
5  * Created by Li Guifu <bluce.lee@aliyun.com>
6  */
7 #ifndef __EROFS_EXCLUDE_H
8 #define __EROFS_EXCLUDE_H
9 
10 #include <sys/types.h>
11 #include <regex.h>
12 
13 struct erofs_exclude_rule {
14 	struct list_head list;
15 
16 	char *pattern;
17 	regex_t reg;
18 };
19 
20 void erofs_exclude_set_root(const char *rootdir);
21 void erofs_cleanup_exclude_rules(void);
22 
23 int erofs_parse_exclude_path(const char *args, bool is_regex);
24 struct erofs_exclude_rule *erofs_is_exclude_path(const char *dir,
25 						 const char *name);
26 #endif
27 
28