• Pavel Emelyanov's avatar
    shm: Do not dump sysvshm twice · a2a07874
    Pavel Emelyanov authored
    The contents of sysvshm areas is sometimes dumped twice.
    
    First time it goes via cr_dump_shmem(), since each attachment
    of the segment is noted by the add_shmem_area() and thus
    gets into the list scanned by the former call().
    
    Second time it is dumped by dump_ipc_shm_pages().
    
    Another thing is that in the 1st dump memory gets into the
    standard pagemap/pages image pair, while in the 2nd time
    it's all written as plain byte array into ipcns-shm.img.
    
    At restore contents is read from the ipcns-shm.img (2nd).
    
    While the first way is preferred, let's (temporarily)
    eliminate it. Historically these segments were dumped and
    restored the 2nd way.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    a2a07874
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...