erofs-utils: introduce exclude dirs and files

Add excluded file feature "--exclude-path=" and '--exclude-regex=',
which can be used to build EROFS image without some user specific
files or dirs.

The implementation is kept as simple as possible for now.

Note that you may give multiple '--exclude-path' and '--exclude-regex'
options.

Signed-off-by: Li Guifu <bluce.lee@aliyun.com>
Link: https://lore.kernel.org/r/20200219022056.GA56477@architecture4
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
6 files changed