[Devel] mount: allow any types of NFS mount for a while

Submitted by Stanislav Kinsburskiy on July 19, 2017, 12:53 p.m.

Details

Message ID 20170719125352.77238.76017.stgit@skinsbursky-vz7.qa.sw.ru
State New
Series "mount: allow any types of NFS mount for a while"
Headers show

Commit Message

Stanislav Kinsburskiy July 19, 2017, 12:53 p.m.
Current check for unsupported mounts is obviously broken. So, skip it for a
while.

https://jira.sw.ru/browse/PSBM-68708

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

Patch hide | download patch | download mbox

diff --git a/criu/mount.c b/criu/mount.c
index 7ed5d6e..2ec94b3 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -786,6 +786,8 @@  static bool unsupported_nfs_bindmounts(const struct mount_info *m)
 
 static bool unsupported_nfs_mount(const struct mount_info *m)
 {
+	return false;
+
 	switch (m->nsid->type) {
 		case NS_ROOT:
 			if (m->flags & MS_SHARED)

Comments

Dmitry Safonov July 19, 2017, 1:12 p.m.
On 07/19/2017 03:53 PM, Stanislav Kinsburskiy wrote:
> Current check for unsupported mounts is obviously broken. So, skip it for a
> while.
> 
> https://jira.sw.ru/browse/PSBM-68708
> 
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>

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

> ---
>   criu/mount.c |    2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/criu/mount.c b/criu/mount.c
> index 7ed5d6e..2ec94b3 100644
> --- a/criu/mount.c
> +++ b/criu/mount.c
> @@ -786,6 +786,8 @@ static bool unsupported_nfs_bindmounts(const struct mount_info *m)
>   
>   static bool unsupported_nfs_mount(const struct mount_info *m)
>   {
> +	return false;
> +
>   	switch (m->nsid->type) {
>   		case NS_ROOT:
>   			if (m->flags & MS_SHARED)
>