Merge pull request #1949 from cgwalters/overlay-more-comments
graphdriver: Clarify name of fsverity const, tweak docs
This commit is contained in:
commit
50855b2ba0
|
|
@ -215,20 +215,25 @@ const (
|
|||
DifferOutputFormatFlat
|
||||
)
|
||||
|
||||
// DifferFsVerity is a part of the experimental Differ interface and should not be used from outside of c/storage.
|
||||
// It configures the fsverity requirement.
|
||||
type DifferFsVerity int
|
||||
|
||||
const (
|
||||
// DifferFsVerityDisabled means no fs-verity is used
|
||||
DifferFsVerityDisabled = iota
|
||||
|
||||
// DifferFsVerityEnabled means fs-verity is used when supported
|
||||
DifferFsVerityEnabled
|
||||
// DifferFsVerityIfAvailable means fs-verity is used when supported by
|
||||
// the underlying kernel and filesystem.
|
||||
DifferFsVerityIfAvailable
|
||||
|
||||
// DifferFsVerityRequired means fs-verity is required
|
||||
// DifferFsVerityRequired means fs-verity is required. Note this is not
|
||||
// currently set or exposed by the overlay driver.
|
||||
DifferFsVerityRequired
|
||||
)
|
||||
|
||||
// DifferOptions overrides how the differ work
|
||||
// DifferOptions is a part of the experimental Differ interface and should not be used from outside of c/storage.
|
||||
// It overrides how the differ works.
|
||||
type DifferOptions struct {
|
||||
// Format defines the destination directory layout format
|
||||
Format DifferOutputFormat
|
||||
|
|
|
|||
|
|
@ -2151,7 +2151,7 @@ func (d *Driver) ApplyDiffWithDiffer(id, parent string, options *graphdriver.App
|
|||
}
|
||||
if d.usingComposefs {
|
||||
differOptions.Format = graphdriver.DifferOutputFormatFlat
|
||||
differOptions.UseFsVerity = graphdriver.DifferFsVerityEnabled
|
||||
differOptions.UseFsVerity = graphdriver.DifferFsVerityIfAvailable
|
||||
}
|
||||
out, err := differ.ApplyDiff(applyDir, &archive.TarOptions{
|
||||
UIDMaps: idMappings.UIDs(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue