Commit Graph

4 Commits

Author SHA1 Message Date
Nalin Dahyabhai 05c69f1b2a overlay: check if metacopy is happening
In the overlay driver, check if metacopy is enabled, and report it along
with other status information.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-01-17 14:14:10 -05:00
Daniel J Walsh ab4364860e
Pass mount options to useNaiveDiff
If in storage.conf I set the mount options to:
mountopt = "nodev,metacopy=on,redirect_dir=on"
This will turn on redirect_dir but the useNaiveDiff does not currently check
this option.  This will cause container images on commit to not be saved
correctly.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-10-25 15:33:00 -04:00
Daniel J Walsh 09480532cf Fallback to use naive diff driver if enable CONFIG_OVERLAY_FS_REDIRECT_DIR
Grab Lei Jitang <leijitang@huawei.com> patches from
github.com/Moby/Moby/49c3a7c4bac2877265ef8c4eaf210159560f08b4

    When use overlay2 as the graphdriver and the kernel enable
    `CONFIG_OVERLAY_FS_REDIRECT_DIR=y`, rename a dir in lower layer
    will has a xattr to redirct its dir to source dir. This make the
    image layer unportable. This patch fallback to use naive diff driver
    when kernel enable CONFIG_OVERLAY_FS_REDIRECT_DIR

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-10-05 15:27:54 -04:00
Daniel J Walsh e5f58bf9c2 Backport moby overlay driver changes to containers/storage
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-26 20:45:15 +00:00