Projects STRLCPY criu Commits c772fca0
🤬
  • mount: don't dump content for external mounts

    External mounts are provided by an user and CRIU doesn't
    need to restore their content.
    
    https://github.com/xemul/criu/issues/299
    
    Reported-by: Stéphane Graber
    Signed-off-by: Andrei Vagin <[email protected]>
  • Loading...
  • Andrei Vagin committed 7 years ago
    c772fca0
    1 parent 8d2ece72
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    criu/mount.c
    skipped 1262 lines
    1263 1263   if (me.fstype == FSTYPE__AUTO)
    1264 1264   me.fsname = pm->fsname;
    1265 1265   
     1266 + if (!pm->external) {
     1267 + if (!pm->dumped && dump_one_fs(pm))
     1268 + return -1;
    1266 1269   
    1267  - if (!pm->dumped && dump_one_fs(pm))
    1268  - return -1;
    1269  - 
    1270  - if (!fsroot_mounted(pm) &&
    1271  - pm->fstype->check_bindmount && pm->fstype->check_bindmount(pm))
    1272  - return -1;
     1270 + if (!fsroot_mounted(pm) &&
     1271 + pm->fstype->check_bindmount && pm->fstype->check_bindmount(pm))
     1272 + return -1;
     1273 + }
    1273 1274   
    1274 1275   if (pm->mnt_id == CRTIME_MNT_ID) {
    1275 1276   pr_info("Skip dumping cr-time mountpoint: %s\n", pm->mountpoint);
    skipped 2003 lines
Please wait...
Page is in error, reload to recover