- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for isSysErrNoSpace (0.08 seconds)
-
cmd/xl-storage-errors.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "errors" "os" "runtime" "syscall" ) // No space left on device error func isSysErrNoSpace(err error) bool { return errors.Is(err, syscall.ENOSPC) } // Invalid argument, unsupported flags such as O_DIRECT func isSysErrInvalidArg(err error) bool { return errors.Is(err, syscall.EINVAL) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Mar 06 16:56:29 GMT 2023 - 3.8K bytes - Click Count (0) -
cmd/storage-errors.go
storageLogIf(context.Background(), err) // For some odd calls with O_DIRECT reads // filesystems can return EINVAL, handle // these as FileNotFound instead. return errFileNotFound } if isSysErrNoSpace(err) { return errDiskFull } return err
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 6.4K bytes - Click Count (0) -
cmd/xl-storage.go
renameAll(encodeDirObject(filePath), targetPath2, pathutil.Join(s.drivePath, minioMetaBucket)) } // ENOSPC is a valid error from rename(); remove instead of rename in that case if errors.Is(err, errDiskFull) || isSysErrNoSpace(err) { if recursive { err = removeAll(filePath) } else { err = Remove(filePath) } return err // Avoid the immediate purge since not needed } if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 91.7K bytes - Click Count (0)