forked from gburca/rofs-filtered
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rofs-filtered.rc
71 lines (65 loc) · 1.91 KB
/
rofs-filtered.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# vim: set filetype=conf :
#
# Configuration file for rofs-filtered (filtered ReadOnlyFileSystem)
#
# Comments must start with '#' in the first column.
# If the pattern is supposed to start with '#', use '\#' instead.
#
# This file is only read at start-up, so after modifying it, umount and
# re-mount the directory to make it take effect.
# Each line below should contain a RegEx (regular expression) pattern (no
# longer than 1023 characters) that matches the files to be filtered out (or
# hidden). The pattern is applied to the full path, starting at the mount
# point. See the regex(7) man page for the allowed syntax.
#
# For example, assume we have the following source directory structure mounted
# at /mnt/point :
#
# sourceDir/
# |-- block
# |-- character
# |-- file1.flac
# |-- file1.mp3
# |-- file2.mp3
# |-- file3.mp3 -> subDir1/file3.mp3
# |-- type:LNK
# |-- subDir1/
# | |-- file3.flac
# | |-- file3.mp3
# | |-- fileA.mp3
# | |-- pipe|
# | |-- socket=
# | `-- subSubDir1/
# `-- subDir2/
# |-- fileA.mp3
# |-- file4.flac
# `-- file4.mp3
#
# The RegEx will be tested against:
# /
# /file1.flac
# /file1.mp3
# /file2.mp3
# /subDir1
# /subDir1/file3.flac
# etc...
#
# Notice that it's not tested against the absolute location of the file (which
# would be /mnt/point/subDir1/file3.flac for example).
# Hide all *.flac files (all files or directories that end in ".flac"):
.*\.flac$
# Hide subDir2 (and all its contents), no matter where it appears in the tree:
/subDir2$
# Hide the subDir2 but only if it occurs at the root of the tree:
^/subDir2$
# Since a RegEx can not start with '|' (vertical bar), this symbol is used to
# escape out of RegEx mode and introduce special configuration flags.
#
# Special file types will be filtered out using these lines, see stat(2) for more details.
|type:CHR
|type:BLK
|type:LNK
|type:FIFO
|type:SOCK
# Note this is a RegEx filter, not a special file type filter.
type:LNK