Line 51: |
Line 51: |
| == Auto detection == | | == Auto detection == |
| | | |
− | FIXME
| + | In case one wants CRIU to autodetect and dump all the external bind mounts, and there is no need to change host mount points on restore, one can use a special syntax: |
| + | |
| + | criu dump ... --external mnt[]:''flags'' |
| + | |
| + | Note here is nothing inside square brackets, and the optional <code>:''flags''</code> argument can contain the following characters: |
| + | |
| + | ; <code>m</code> |
| + | : Also enable dumping of external master mounts (as in <code>mount --make-slave</code>) |
| + | ; <code>s</code> |
| + | : Also enable dumping of external shared mounts (as in <code>mount --make-shared</code>) |
| + | |
| + | By default, neither master nor shared external mounts are not dumped (if found, dump is aborted). Note if <code>''flags''</code> are not given, semicolon is optional. |
| + | |
| + | === Examples === |
| + | |
| + | criu dump ... --external 'mnt[]' |
| + | |
| + | Auto detect and dump all external bind mounts. |
| + | |
| + | criu dump ... --external 'mnt[]:s' |
| + | |
| + | Auto detect and dump all external bind mounts, including the shared ones. |
| + | |
| + | criu dump ... --external 'mnt[]:sm' |
| + | |
| + | Auto detect and dump all external bind mounts, including the shared and the master ones. |
| | | |
| == Old days == | | == Old days == |