Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isSysErrTooLong (0.17 sec)

  1. 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 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  2. 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 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:29 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    	if err = checkPathLength(drivePath); err == nil {
    		di, err = disk.GetInfo(drivePath, false)
    	}
    	switch {
    	case osIsNotExist(err):
    		err = errDiskNotFound
    	case isSysErrTooLong(err):
    		err = errFileNameTooLong
    	case isSysErrIO(err):
    		err = errFaultyDisk
    	}
    
    	return di, err
    }
    
    // Implements stringer compatible interface.
    func (s *xlStorage) String() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top