Commit Graph

6 Commits

Author SHA1 Message Date
Doug Rabson 6dc2de36ca pkg/archive: Ignore file mounts when checking for mount points
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>
2023-07-07 13:51:35 +01:00
Doug Rabson a0ac311224 Add (StatT).Dev which returns the filesystem ID
Signed-off-by: Doug Rabson <dfr@rabson.org>
2022-11-15 11:18:40 +00:00
Doug Rabson 9ad4537f01 pkg/system: Add file flags to StatT on FreeBSD
This will also probably work on other BSD derived platforms including
darwin.

Signed-off-by: Doug Rabson <dfr@rabson.org>
2022-10-20 08:58:04 +01:00
Kir Kolyshkin 921e64c09a pkg/system/[l]stat_unix: wrap errors in PathError
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>
2020-03-09 10:42:29 -07:00
Nalin Dahyabhai 1279f019a9 Merge the disparate parts of all of the Unix-like lockfiles
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>
2019-06-06 15:59:39 -04:00
Daniel J Walsh f39066fe1b Update packages to match latest code in moby/pkg
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>
2017-09-12 18:00:29 +00:00