Changes

Jump to navigation Jump to search
476 bytes added ,  18:46, 26 December 2013
+ external links
Line 69: Line 69:     
The <code>is_file</code> if not NULL points to the boolean variable saying whether the mountpoint is file or directory. Since in Linux one can bind mount files or directories, CRIU need to know whether the new mount point, created by plugin, is one of those.
 
The <code>is_file</code> if not NULL points to the boolean variable saying whether the mountpoint is file or directory. Since in Linux one can bind mount files or directories, CRIU need to know whether the new mount point, created by plugin, is one of those.
 +
 +
=== External net devices (links) ===
 +
 +
When trying to C/R a net namespace with links put outside of it (physical devices assigned or macvlans/vlans) CRIU will call the
 +
 +
int int cr_plugin_dump_ext_link(int index, int type, char *kind);
 +
 +
callback. The <code>index</code> is the link index, <code>type</code> is one of the <code>ARPHRD_</code> value and <code>kind</code> is the link driver name.
 +
Restoring external links should happen in "setup-namespaces" [[action scripts]].
    
=== Examples ===
 
=== Examples ===

Navigation menu