Make the logic match the comment for real this time: instead of
comparing the datestamps a second time, check the ModeType bits.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
When considering changes, don't ignore differences between directories
when their mtimes are the only thing we check that's changed. This
creates a difference in behavior between the vfs and overlay drivers
that shows up in build conformance tests.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Note: the Flags method of system.StatT always returns zero on
non-FreeBSD platforms so this should have no functional change for those
platforms.
Signed-off-by: Doug Rabson <dfr@rabson.org>
Fix leaked fd.
Fix potential dereference of nil.
Coverity found the leaked fd and the potential dereference.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Expose reading and writing ID mapping in the archive and chrootarchive
packages, and in the driver interface. Generally this means that
when computing or applying diffs, we need to have ID mappings passed in
that are specific to the layers we're using.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Had to vendor in a new version of golang.org/x/net to build
Also had to make some changes to drivers to handle
archive.Reader -> io.Reader
archive.Archive -> io.ReadCloser
Also update .gitingore to ignore emacs files, containers-storage.*
and generated man pages.
Also no longer test travis against golang 1.7, cri-o, moby have also
done this.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Rename the library module and CLI wrapper.
Rename daemon/graphdriver to drivers.
Catch up vendoring to match modules we've pruned.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
All the go-lint work forced any existing "Uid" -> "UID", but seems to
not have the same rules for Gid, so stat package has calls UID() and
Gid().
Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)