Merge pull request #1 from shotcollin/typo-fixes

fix typo in log warning
This commit is contained in:
shotcollin 2021-12-19 17:10:39 -07:00 committed by GitHub
commit a259c7bd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ func CreatePartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*PartialF
err := fallocate.Fallocate(f, 0, int64(maxPieceSize))
if errno, ok := err.(syscall.Errno); ok {
if errno == syscall.EOPNOTSUPP || errno == syscall.ENOSYS {
log.Warnf("could not allocated space, ignoring: %v", errno)
log.Warnf("could not allocate space, ignoring: %v", errno)
err = nil // log and ignore
}
}