[CRIU] [PATCH] fix parse_mnt_flags() to dump/restore STRICTATIME correctly
Cyrill Gorcunov
gorcunov at gmail.com
Fri Apr 24 11:52:05 PDT 2015
On Fri, Apr 24, 2015 at 08:32:22PM +0200, Oleg Nesterov wrote:
> CRIU always retores the mounts as MNT_RELATIME. This is because the
> kernel uses this mode by default, so we need to pass MS_STRICTATIME
> explicitely if we didn't see "noatime" or "MS_RELATIME".
>
> While at it, make mnt_opt2flag[] and sb_opt2flag "static", otherwise
> gcc actually creates these arrays on stack even if there are "const".
>
> Signed-off-by: Oleg Nesterov <oleg at redhat.com>
Reviewed-by: Cyrill Gorcunov <gorcunov at openvz.org>
Thank you!
More information about the CRIU
mailing list