mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
cache: improve error reported for atime check (#14384)
This commit is contained in:
parent
4ea7bf0510
commit
1ef8babfef
@ -19,7 +19,6 @@ package cmd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -602,7 +601,7 @@ func newCache(config cache.Config) ([]*diskCache, bool, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := checkAtimeSupport(dir); err != nil {
|
if err := checkAtimeSupport(dir); err != nil {
|
||||||
return nil, false, errors.New("Atime support required for disk caching")
|
return nil, false, fmt.Errorf("Atime support required for disk caching, atime check failed with %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cache, err := newDiskCache(ctx, dir, config)
|
cache, err := newDiskCache(ctx, dir, config)
|
||||||
|
Loading…
Reference in New Issue
Block a user