If we return SkipDir for file mounts, this can generate a diff that
deletes all files after the mount point.
Signed-off-by: Doug Rabson <dfr@rabson.org>
syscall.Stat (and Lstat), unlike functions from the os package,
return "raw" errors (like EPERM or EINVAL), and those are
propagated up the function call stack unchanged, and gets
logged and/or returned to the user as is.
Wrap those into os.PathError{} so the error message will
at least have function name and file name.
Note we use Capitalized function names to distinguish
between functions in the os package and ours.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The lockfile implementation was mostly shared across Unix-like operating
systems, except for a couple of methods that differed. The system
package already provided abstractions for most of them, so we add a
missing piece and use it to finish merging them.
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>