mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -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 (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
@ -602,7 +601,7 @@ func newCache(config cache.Config) ([]*diskCache, bool, error) {
|
||||
continue
|
||||
}
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user