man: document squash functionalities

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-12-22 15:58:11 +01:00
parent e5d35c9a01
commit 0b551b90bd
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED
2 changed files with 26 additions and 0 deletions

View File

@ -42,6 +42,11 @@ done to the file system will be written.
A directory used internally by fuse\-overlays, must be on the same file A directory used internally by fuse\-overlays, must be on the same file
system as the upper dir. system as the upper dir.
.PP
\fB\-o workdir=workdir\fP
A directory used internally by fuse\-overlays, must be on the same file
system as the upper dir.
.PP .PP
\fB\-o uidmapping=UID:MAPPED\-UID:LEN[,UID2:MAPPED\-UID2:LEN2]\fP \fB\-o uidmapping=UID:MAPPED\-UID:LEN[,UID2:MAPPED\-UID2:LEN2]\fP
\fB\-o gidmapping=GID:MAPPED\-GID:LEN[,GID2:MAPPED\-GID2:LEN2]\fP \fB\-o gidmapping=GID:MAPPED\-GID:LEN[,GID2:MAPPED\-GID2:LEN2]\fP
@ -99,6 +104,18 @@ $ stat \-c %u:%g merged/a merged/b
.PP .PP
Those are the same IDs visible from outside the user namespace. Those are the same IDs visible from outside the user namespace.
.PP
\fB\-o squash\_to\_root\fP
Every file and directory is owned by the root user (0:0).
.PP
\fB\-o squash\_to\_uid=uid\fP
\fB\-o squash\_to\_gid=gid\fP
Every file and directory is owned by the specified uid or gid.
.PP
It has higher precedence over \fBsquash\_to\_root\fP\&.
.SH SEE ALSO .SH SEE ALSO
.PP .PP

View File

@ -84,6 +84,15 @@ $ stat -c %u:%g merged/a merged/b
Those are the same IDs visible from outside the user namespace. Those are the same IDs visible from outside the user namespace.
**-o squash_to_root**
Every file and directory is owned by the root user (0:0).
**-o squash_to_uid=uid**
**-o squash_to_gid=gid**
Every file and directory is owned by the specified uid or gid.
It has higher precedence over **squash_to_root**.
# SEE ALSO # SEE ALSO
**fuse**(8), **mount**(8), **user_namespaces**(7) **fuse**(8), **mount**(8), **user_namespaces**(7)