summaryrefslogtreecommitdiffstats
path: root/man5/erofs.5
blob: 3611baffa99c9aa621e380a88caa7279d23be05d (plain) (blame)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.\" Copyright (c) 2016 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH erofs 5 (date) "Linux man-pages (unreleased)"
.SH NAME
erofs \- the Enhanced Read-Only File System
.SH DESCRIPTION
.B erofs
is a create-once read-only filesystem,
with support for compression and a multi-device backing store.
.P
There are two inode formats:
.IP \[bu] 3
32-byte compact with 16-bit UID/GID,
32-bit file size,
and no file times
.PD 0
.IP \[bu]
64-byte extended with 32-bit UID/GID,
64-bit file size,
and a modification time
.RI ( st_mtim ).
.PD
.\" See fs/erofs/super.c:shmem_parse_options for options it supports.
.SS Mount options
.TP
.B user_xattr
.TQ
.B nouser_xattr
Controls whether
.I user
extended attributes are exposed.
Defaults to yes.
.TP
.B acl
.TQ
.B noacl
Controls whether POSIX
.BR acl (5)s
are exposed.
Defaults to yes.
.TP
.BR cache_strategy = disabled | readahead | readaround
Cache allocation for compressed files:
never, if reading from start of file, regardless of position.
Defaults to
.BR readaround .
.TP
.B dax
.TQ
.BR dax = always | never
Direct Access control.
If
.B always
and the source device supports DAX, uncompressed non-inlined files
will be read directly, without going through the page cache.
.B dax
is a synonym for
.BR always .
Defaults to unset, which is equivalent to
.BR never .
.TP
.BR device = \fIblobdev\fP
Add extra device holding some of the data.
Must be given as many times and in the same order as
.B \-\-blobdev
was to
.BR mkfs.erofs (1).
.\" Nominally there's a device_table feature and it somehow scans(?) for them,
.\" cf. super.c:erofs_scan_devices(), but I haven't gotten it to work
.TP
.BR domain_id = \fIdid\fP
.TQ
.BR fsid = \fIid\fP
Control CacheFiles on-demand read support.
To be documented.
.SH VERSIONS
.B erofs
images are versioned through the use of feature flags;
these are listed in the
.B \-E
section of
.BR mkfs.erofs (1),
.SH CONFIGURATION
Linux must be configured with the
.B CONFIG_EROFS_FS
option to mount EROFS filesystems.
There are sub-configuration items that restrict the availability
of some of the parameters above.
.SH SEE ALSO
.BR mkfs.erofs (1),
.BR fsck.erofs (1),
.BR dump.erofs (1)
.P
.I Documentation/filesystems/erofs.txt
in the Linux source.