0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/storage
peusebiu 5479e2c785
s3: fix dedupe failing to manage blobs correctly (#772)
in order to know which blob is 'real' (has content)
we need to know which was the first blob inserted in cache,
because that is always the real one.

because we can not modify the keys order in boltdb we'll do this
by marking the first blob inserted with a value

when GetBlob() return the blob which is marked
when PutBlob() if is the first one, mark it
when DeleteBlob() in case deleted is marked then mark the next blob

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2022-09-08 01:12:14 +03:00
..
s3 s3: fix dedupe failing to manage blobs correctly (#772) 2022-09-08 01:12:14 +03:00
cache.go s3: fix dedupe failing to manage blobs correctly (#772) 2022-09-08 01:12:14 +03:00
cache_test.go s3: added logic for deduping blobs 2022-05-24 17:00:10 -07:00
lint-interface.go image level lint: enforce manifest mandatory annotations 2022-07-27 11:48:04 +03:00
local.go Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
local_elevated_test.go Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
local_test.go Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
README.md refactor filenames to reflect functionality 2022-06-21 21:42:54 -07:00
scrub.go Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
scrub_test.go Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
storage.go Fix file handlers not being closed after calls to ImageStore.GetBlob 2022-08-19 09:22:13 -07:00
storage_test.go Fix file handlers not being closed after calls to ImageStore.GetBlob 2022-08-19 09:22:13 -07:00

zot currently supports two types of underlying filesystems:

  1. local - a locally mounted filesystem

  2. remote - a remote filesystem such as AWS S3