On 28.09.2015 19:21, Stanislav Kinsburskiy wrote: > 28.09.2015 17:57, Vasily Averin пишет: >> Stas, >> please see my comment below. >> >>> --- a/include/linux/cpt_image.h >>> +++ b/include/linux/cpt_image.h >>> @@ -963,6 +963,11 @@ struct cpt_sock_image >>> __u32 cpt_i_uid; >>> __u32 cpt_i_gid; >>> + >>> + __u32 cpt_d_alias[128/4]; >>> + >>> + __u32 cpt_d_aliaslen; >>> + __u32 __cpt_pad15; >>> } __attribute__ ((aligned (8))); >> size of this structure increases ==> CPT image version should be increased >> ==> it's impossible to migrate from new kernels to old ones. >> Am I missed something? > > Frankly, yes. > It's not necessary to change image version. > There is a "cpd_object_has()" helper, allowing to check, whether > image has additional fields at the end or not dynamically. IOW, old > kernel won't notice these new fields and will proceed as before. > It's used in third patch of the series.
Thank you for explanation! _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel