mirror of
https://github.com/containers/skopeo.git
synced 2025-09-24 03:17:17 +00:00
Vendor containers/storage, and its dependencies github.com/pborman/uuid and github.com/mistifyio/go-zfs, which we didn't already use. Update the build Dockerfile to install their dependencies. Add scriptlets that try to detect whether or not we need to use the "libdm_no_deferred_remove" and/or "btrfs_noversion" build tags. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
24 lines
1.1 KiB
Go
24 lines
1.1 KiB
Go
package archive
|
|
|
|
// Whiteouts are files with a special meaning for the layered filesystem.
|
|
// Docker uses AUFS whiteout files inside exported archives. In other
|
|
// filesystems these files are generated/handled on tar creation/extraction.
|
|
|
|
// WhiteoutPrefix prefix means file is a whiteout. If this is followed by a
|
|
// filename this means that file has been removed from the base layer.
|
|
const WhiteoutPrefix = ".wh."
|
|
|
|
// WhiteoutMetaPrefix prefix means whiteout has a special meaning and is not
|
|
// for removing an actual file. Normally these files are excluded from exported
|
|
// archives.
|
|
const WhiteoutMetaPrefix = WhiteoutPrefix + WhiteoutPrefix
|
|
|
|
// WhiteoutLinkDir is a directory AUFS uses for storing hardlink links to other
|
|
// layers. Normally these should not go into exported archives and all changed
|
|
// hardlinks should be copied to the top layer.
|
|
const WhiteoutLinkDir = WhiteoutMetaPrefix + "plnk"
|
|
|
|
// WhiteoutOpaqueDir file means directory has been made opaque - meaning
|
|
// readdir calls to this directory do not follow to lower layers.
|
|
const WhiteoutOpaqueDir = WhiteoutMetaPrefix + ".opq"
|