iyear
9df5a1714d
snapshots: refactor metastore transaction
...
Signed-off-by: Junyu Liu <ljyngup@gmail.com>
2023-01-05 15:53:23 +08:00
Tonis Tiigi
fe426227d4
native: fix deadlock from leaving transactions open
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-03-23 15:48:42 -07:00
haoyun
bbe46b8c43
feat: replace github.com/pkg/errors to errors
...
Signed-off-by: haoyun <yun.hao@daocloud.io>
Co-authored-by: zounengren <zouyee1989@gmail.com>
2022-01-07 10:27:03 +08:00
haoyun
c0d07094be
feat: Errorf usage
...
Signed-off-by: haoyun <yun.hao@daocloud.io>
2021-12-13 14:31:53 +08:00
Eng Zer Jun
50da673592
refactor: move from io/ioutil to io and os package
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-09-21 09:50:38 +08:00
Samuel Karp
b624486c84
native: support for FreeBSD
...
Signed-off-by: Samuel Karp <me@samuelkarp.com>
2020-12-22 21:26:04 -08:00
Jian Zeng
c50ff694f0
refactor(native): separate init from implementation
...
Part of #4513
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2020-09-03 19:58:31 +08:00
Derek McGowan
66aa1d3ef6
Add snapshot walk implementations
...
Temporarily remove zfs and aufs until interface update
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-10-24 11:11:22 -07:00
bpopovschi
e8c14c07c6
Added filters to snapshots API
...
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
2019-10-24 11:11:22 -07:00
Akihiro Suda
d52cbc19be
snapshots/native: ignore xattr errors during CopyDir
...
`secuity.*` xattrs cannot be copied in most cases
For moby/buildkit#1189
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-13 01:53:35 +09:00
Ace-Tang
7faaa64cf9
fix: miss remove temp file in createSnapshot
...
```
func foo() error {
defer func() {
if err != nil {
...
}
}()
...
}
```
use defer func to do something when err not nil, if foo() not use
named error, `err != nil` can not catch all errors, since when err
re-defined in if condition, it is a new variable.
Signed-off-by: Ace-Tang <aceapril@126.com>
2018-12-24 23:01:56 +08:00
Michael Wan
92243ff72a
bugfix: updatedAt timestamp file may be empty
...
Signed-off-by: Michael Wan <zirenwan@gmail.com>
2018-08-29 21:49:40 -04:00
Akihiro Suda
7461739b58
native: set '/' permission to 0755
...
Unlike other snapshotters, the permission was previously set to 0700
unexpectedly.
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-07-23 16:14:55 +09:00
Akihiro Suda
83e35b3d3a
enable native (formerly naive) snapshotter by default
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-04-02 13:29:19 +09:00