[Devel] nfs support during migration

xing lin linxingnku at gmail.com
Tue Jul 20 11:48:21 PDT 2010


Hi,

I have tried to migrate OpenVZ containers but found that nfs is not
support for migration. Then I looked into the source code and added
one line in /linux/kernel/cpt/cpt_files.h


#define check_one_vfsmount(mnt) \
        (strcmp(mnt->mnt_sb->s_type->name, "rootfs") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "vzfs") != 0 && \

         strcmp(mnt->mnt_sb->s_type->name, "ext3") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "ext2") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "simfs") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "unionfs") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "tmpfs") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "devpts") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "proc") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "nfs") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "sysfs") != 0 && \
         strcmp(mnt->mnt_sb->s_type->name, "binfmt_misc") != 0)


After that, I recompiled and reinstalled the new kernel. Nfs can be
supported for migration now. I am wondering if it is so easy to add
support for nfs, why the developers did not add this at the beginning?

Thanks very much.

-- 
Regards,
Xing
School of Computing, University of Utah
http://www.cs.utah.edu/~xinglin/




More information about the Devel mailing list