Provide stat descriptor for Create method during cross-repo mount (#1857)

* Allow precomputed stats on cross-mounted blobs

Signed-off-by: Michal Minář <miminar@redhat.com>

* Extended cross-repo mount tests

Signed-off-by: Michal Minář <miminar@redhat.com>
This commit is contained in:
Michal Minář 2016-08-02 04:07:11 +02:00 committed by Richard Scothern
parent 87917f3052
commit 7365003236
3 changed files with 159 additions and 10 deletions

View file

@ -198,6 +198,9 @@ type CreateOptions struct {
Mount struct {
ShouldMount bool
From reference.Canonical
// Stat allows to pass precalculated descriptor to link and return.
// Blob access check will be skipped if set.
Stat *Descriptor
}
}