[live snapshot] make snapshot name from const char* to char*

This will fix a build error as below on some platforms.

migration.c: In function ‘savevm_start_outgoing_migration’:
migration.c:383:17: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
cc1: all warnings being treated as errors
(cherry picked from commit 49efc432881b313906d2123526086c57007df398)
[Patch] support backing image in ramfs

When an image is opened with directsync/none mode and its backing
file is located in ramfs such as /dev/shm, the drive can not be
opened.

This patch tries to remove O_DIRECT flag of a backing file if it
fails to open.
(cherry picked from commit a9e69b5b60c22a17913ad7dee213831d143b2a04)