Changes

Jump to navigation Jump to search
15 bytes removed ,  19:55, 25 March 2020
don't make "Sharing" the subsection of "old days"; minor English fixes
Line 68: Line 68:  
  criu dump ... --external 'mnt[]'
 
  criu dump ... --external 'mnt[]'
   −
Auto detect and dump all external bind mounts.
+
Auto-detect and dump all external bind mounts.
    
  criu dump ... --external 'mnt[]:s'
 
  criu dump ... --external 'mnt[]:s'
   −
Auto detect and dump all external bind mounts, including the shared ones.
+
Auto-detect and dump all external bind mounts, including the shared ones.
    
  criu dump ... --external 'mnt[]:sm'
 
  criu dump ... --external 'mnt[]:sm'
   −
Auto detect and dump all external bind mounts, including the shared and the master ones.
+
Auto-detect and dump all external bind mounts, including the shared and the master ones.
   −
== Old days ==
+
== Sharing ==
 
  −
For now the same behavior is configured with the <code>--ext-mount-map KEY:VAL</code> option. Soon this option will be [[deprecation|deprecated]].
  −
 
  −
[[Category:HOWTO]]
  −
[[Category:External]]
  −
 
  −
=== Sharing for external bindmounts ===
      
External bindmounts can both have internal/external sharing. Please see the example:
 
External bindmounts can both have internal/external sharing. Please see the example:
Line 133: Line 126:  
  # 899 843 0:5 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
 
  # 899 843 0:5 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
   −
Mounts 812 (on host) and 861 (in container) have the same sharing (shared group) - external sharing and mount 898 has it's own local shared group - internal sharing.
+
Mounts 812 (on the host) and 861 (in a container) have the same sharing (shared group) - external sharing and mount 898 has it's own local shared group - internal sharing.
 +
 
 +
Before [https://github.com/checkpoint-restore/criu/pull/906 #906] we were detecting this external/internal sharing state for auto-detected external mounts only, but we need it for manual external mounts too. Moreover, this also applies to manual external slave mounts they can be external/internal slaves too.
 +
 
 +
So we detect that the mount is from external sharing if in mount namespace of CRIU there are mounts of the same shared group and also we detect that the mount is from external slavery if there is no master mount for it in CT mount namespaces.
   −
Before [https://github.com/checkpoint-restore/criu/pull/906 #906] we were detecting this external/internal sharing state for auto detected external mounts only, but we need it for manual external mounts too. Moreover this also applies to manual external slave mounts they can be external/internal slaves too.
+
== Old days ==
   −
So we detect that the mount is from external sharing if in mount namespace of CRIU there are mounts of same shared group and also we detect that the mount is from external slavery if there is no master mount for it in CT mount namespaces.
+
For now the same behavior is configured with the <code>--ext-mount-map KEY:VAL</code> option. Soon this option will be [[deprecation|deprecated]].
 +
 
 +
[[Category:HOWTO]]
 +
[[Category:External]]

Navigation menu