- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isSysErrTooLong (0.13 sec)
-
cmd/xl-storage-errors_test.go
package cmd import ( "os" "runtime" "syscall" "testing" ) func TestSysErrors(t *testing.T) { pathErr := &os.PathError{Err: syscall.ENAMETOOLONG} ok := isSysErrTooLong(pathErr) if !ok { t.Fatalf("Unexpected error expecting %s", syscall.ENAMETOOLONG) } pathErr = &os.PathError{Err: syscall.ENOTDIR} ok = isSysErrNotDir(pathErr) if !ok {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 1.7K bytes - Viewed (0) -
cmd/xl-storage-errors.go
func isSysErrNotDir(err error) bool { return errors.Is(err, syscall.ENOTDIR) } // Check if the given error corresponds to the ENAMETOOLONG (name too long). func isSysErrTooLong(err error) bool { return errors.Is(err, syscall.ENAMETOOLONG) } // Check if the given error corresponds to the ELOOP (too many symlinks). func isSysErrTooManySymlinks(err error) bool {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:29 UTC 2023 - 3.8K bytes - Viewed (0) -
cmd/xl-storage.go
} else { rootDrive, err = disk.IsRootDisk(drivePath, SlashSeparator) } } } switch { case osIsNotExist(err): err = errDiskNotFound case isSysErrTooLong(err): err = errFileNameTooLong case isSysErrIO(err): err = errFaultyDisk } return } // Implements stringer compatible interface. func (s *xlStorage) String() string {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 91.3K bytes - Viewed (0)