[Devel] mount: check for mount is unsupported only on dump

Submitted by Stanislav Kinsburskiy on June 28, 2017, 12:01 p.m.

Details

Message ID 20170628120121.306672.89794.stgit@skinsbursky-vz7.qa.sw.ru
State New
Series "mount: check for mount is unsupported only on dump"
Headers show

Commit Message

Stanislav Kinsburskiy June 28, 2017, 12:01 p.m.
All the mounts on restore stage have to be supported.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 criu/mount.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/mount.c b/criu/mount.c
index edbd140..6916974 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -834,7 +834,7 @@  skip_fstype:
 			return -1;
 		}
 
-		if (unsupported_mount(m))
+		if (for_dump && unsupported_mount(m))
 			return -1;
 	}
 

Comments

Kirill Tkhai June 28, 2017, 4:47 p.m.
On Wed, Jun 28, 2017 at 15:01, Stanislav Kinsburskiy wrote:
> All the mounts on restore stage have to be supported.
> 
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
> ---
>  criu/mount.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/criu/mount.c b/criu/mount.c
> index edbd140..6916974 100644
> --- a/criu/mount.c
> +++ b/criu/mount.c
> @@ -834,7 +834,7 @@ skip_fstype:

Could you please add the following in your ~/.gitconfig?

[diff "default"]
        xfuncname = "^[[:alpha:]$_].*[^:]$"

After this git will use function name in hunk header.
It's more useful: imagine, you changes a line below
some popular label, say, "out:". It's difficult to
understand, which function contain it. But when there
is function name in header, it's pretty easy.

Kirill
Dmitry Safonov June 29, 2017, 6:24 p.m.
On 06/28/2017 03:01 PM, Stanislav Kinsburskiy wrote:
> All the mounts on restore stage have to be supported.
> 
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>

Applied to vz-criu, released in criu-3.0.0.15-1.vz7