mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Fail to start server if detected cross-device mounts. (#4807)
Fixes #4764
This commit is contained in:
committed by
Dee Koder
parent
3d21119ec8
commit
879cef37a1
@@ -118,3 +118,10 @@ func isSysErrHandleInvalid(err error) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func isSysErrCrossDevice(err error) bool {
|
||||
if e, ok := err.(*os.LinkError); ok {
|
||||
return e.Err == syscall.EXDEV
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user