Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for stwat (0.06 sec)

  1. src/os/os_test.go

    	// Create new temporary directory and arrange to clean it up.
    	path := t.TempDir()
    
    	// Stat of path should succeed.
    	if _, err := Stat(path); err != nil {
    		t.Fatalf("stat %s failed: %s", path, err)
    	}
    
    	// Stat of path+"/" should succeed too.
    	path += "/"
    	if _, err := Stat(path); err != nil {
    		t.Fatalf("stat %s failed: %s", path, err)
    	}
    }
    
    func TestNilProcessStateString(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		return nil, time.Time{}, err
    	}
    	defer f.Close()
    	stat, err := f.Stat()
    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	if stat.IsDir() {
    		return nil, time.Time{}, &os.PathError{
    			Op:   "open",
    			Path: itemPath,
    			Err:  syscall.EISDIR,
    		}
    	}
    	buf, err := readXLMetaNoData(f, stat.Size())
    	if err != nil {
    		return nil, stat.ModTime().UTC(), fmt.Errorf("%w -> %s", err, itemPath)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    }
    
    func copyStat(stat *Stat_t, statLE *Stat_LE_t) {
    	stat.Dev = uint64(statLE.Dev)
    	stat.Ino = uint64(statLE.Ino)
    	stat.Nlink = uint64(statLE.Nlink)
    	stat.Mode = uint32(statLE.Mode)
    	stat.Uid = uint32(statLE.Uid)
    	stat.Gid = uint32(statLE.Gid)
    	stat.Rdev = uint64(statLE.Rdev)
    	stat.Size = statLE.Size
    	stat.Atim.Sec = int64(statLE.Atim)
    	stat.Atim.Nsec = 0 //zos doesn't return nanoseconds
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_attacher_test.go

    			// compare attachment status for each spec
    			for _, attached := range tc.attachedSpecs {
    				stat, ok := stats[attached.spec]
    				if attached.attached && !ok {
    					t.Error("failed to retrieve attached status for:", attached.spec)
    				}
    				if attached.attached != stat {
    					t.Errorf("expecting volume attachment %t, got %t", attached.attached, stat)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    	err = ENOSYS
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func fstat(fd int, stat *Stat_LE_t) (err error) {
    	runtime.EnterSyscall()
    	r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FSTAT<<4, uintptr(fd), uintptr(unsafe.Pointer(stat)))
    	runtime.ExitSyscall()
    	if int64(r0) == -1 {
    		err = errnoErr2(e1, e2)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  6. cmd/erasure-healing_test.go

    		t.Fatal(err)
    	}
    	// This would create the bucket.
    	_, err = obj.HealBucket(ctx, bucket, madmin.HealOpts{
    		DryRun: false,
    		Remove: false,
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Stat the bucket to make sure that it was created.
    	_, err = er.getDisks()[0].StatVol(context.Background(), bucket)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    // Tests both object and bucket healing.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  7. src/cmd/go/go_test.go

    	tg.t.Helper()
    	if _, err := os.Stat(path); err != nil {
    		if os.IsNotExist(err) {
    			tg.t.Fatalf("%s does not exist but should", path)
    		}
    		tg.t.Fatalf("%s stat failed: %v", path, err)
    	}
    }
    
    // mustNotExist fails if path exists.
    func (tg *testgoData) mustNotExist(path string) {
    	tg.t.Helper()
    	if _, err := os.Stat(path); err == nil || !os.IsNotExist(err) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    		t.Skip("skipping test on windows")
    	}
    	wfi, err := os.Stat("/etc/hosts")
    	if err != nil {
    		t.Skip("skipping test; no /etc/hosts file")
    	}
    	test := func(d Dir, name string) {
    		f, err := d.Open(name)
    		if err != nil {
    			t.Fatalf("open of %s: %v", name, err)
    		}
    		defer f.Close()
    		gfi, err := f.Stat()
    		if err != nil {
    			t.Fatalf("stat of %s: %v", name, err)
    		}
    		if !os.SameFile(gfi, wfi) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/test.go

    			fmt.Fprintf(h, "chdir %s %x\n", name, hashStat(name))
    		case "stat":
    			if !filepath.IsAbs(name) {
    				name = filepath.Join(pwd, name)
    			}
    			if a.Package.Root == "" || search.InDir(name, a.Package.Root) == "" {
    				// Do not recheck files outside the module, GOPATH, or GOROOT root.
    				break
    			}
    			fmt.Fprintf(h, "stat %s %x\n", name, hashStat(name))
    		case "open":
    			if !filepath.IsAbs(name) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/init.go

    	cfg.ModulesEnabled = true
    	setDefaultBuildMod()
    	list := filepath.SplitList(cfg.BuildContext.GOPATH)
    	if len(list) > 0 && list[0] != "" {
    		gopath = list[0]
    		if _, err := fsys.Stat(filepath.Join(gopath, "go.mod")); err == nil {
    			fmt.Fprintf(os.Stderr, "go: warning: ignoring go.mod in $GOPATH %v\n", gopath)
    			if RootMode == NeedRoot {
    				base.Fatal(ErrNoModRoot)
    			}
    			if !mustUseModules {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top