Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 250 for stdat (0.05 sec)

  1. src/syscall/fs_wasip1.go

    	var stat fdstat
    	errno := fd_fdstat_get(int32(fd), unsafe.Pointer(&stat))
    	return uint32(stat.fdflags), errnoErr(errno)
    }
    
    // fd_fdstat_get_type is accessed from net
    //go:linkname fd_fdstat_get_type
    
    func fd_fdstat_get_type(fd int) (uint8, error) {
    	var stat fdstat
    	errno := fd_fdstat_get(int32(fd), unsafe.Pointer(&stat))
    	return stat.filetype, errnoErr(errno)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. cmd/tier.go

    func (t *tierMetrics) logSuccess(tier string) {
    	t.Lock()
    	defer t.Unlock()
    
    	stat := t.requestsCount[tier]
    	stat.success++
    	t.requestsCount[tier] = stat
    }
    
    func (t *tierMetrics) logFailure(tier string) {
    	t.Lock()
    	defer t.Unlock()
    
    	stat := t.requestsCount[tier]
    	stat.failure++
    	t.requestsCount[tier] = stat
    }
    
    var (
    	// {minio_node}_{tier}_{ttlb_seconds_distribution}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. src/testing/fstest/testfs.go

    			t.errorf("%s: mismatch:\n\tentry.Info() = %s\n\tfile.Stat() = %s\n", path, feinfo, finfo)
    		}
    	}
    
    	// Stat should be the same as Open+Stat, even for symlinks.
    	info2, err := fs.Stat(t.fsys, path)
    	if err != nil {
    		t.errorf("%s: fs.Stat: %w", path, err)
    		return
    	}
    	finfo2 := formatInfo(info2)
    	if finfo2 != finfo {
    		t.errorf("%s: fs.Stat(...) = %s\n\twant %s", path, finfo2, finfo)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. docs/debugging/reorder-disks/main.go

    }
    
    type localDisk struct {
    	index int
    	path  string
    }
    
    func getMajorMinor(path string) (string, error) {
    	var stat syscall.Stat_t
    	if err := syscall.Stat(path, &stat); err != nil {
    		return "", fmt.Errorf("unable to stat `%s`: %w", path, err)
    	}
    
    	devID := uint64(stat.Dev)
    	major := (devID & 0x00000000000fff00) >> 8
    	major |= (devID & 0xfffff00000000000) >> 32
    	minor := (devID & 0x00000000000000ff) >> 0
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/cache.go

    	}, nil
    }
    
    type cachedInfo struct {
    	info *RevInfo
    	err  error
    }
    
    func (r *cachingRepo) Stat(ctx context.Context, rev string) (*RevInfo, error) {
    	if gover.IsToolchain(r.path) {
    		// Skip disk cache; the underlying golang.org/toolchain repo is cached instead.
    		return r.repo(ctx).Stat(ctx, rev)
    	}
    	info, err := r.statCache.Do(rev, func() (*RevInfo, error) {
    		file, info, err := readDiskStat(ctx, r.path, rev)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. src/os/read_test.go

    import (
    	"bytes"
    	. "os"
    	"path/filepath"
    	"runtime"
    	"testing"
    )
    
    func checkNamedSize(t *testing.T, path string, size int64) {
    	dir, err := Stat(path)
    	if err != nil {
    		t.Fatalf("Stat %q (looking for size %d): %s", path, size, err)
    	}
    	if dir.Size() != size {
    		t.Errorf("Stat %q: size %d want %d", path, dir.Size(), size)
    	}
    }
    
    func TestReadFile(t *testing.T) {
    	t.Parallel()
    
    	filename := "rumpelstilzchen"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. 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)
  8. docs/bucket/replication/test_del_marker_proxying.sh

    	if [ $loop_count -eq 100 ]; then
    		break
    	fi
    	echo "Hello World" | ./mc pipe sitea/bucket/obj$loop_count
    	./mc rm sitea/bucket/obj$loop_count
    	RESULT=$({ ./mc stat sitea/bucket/obj$loop_count; } 2>&1)
    	if [[ ${RESULT} != *"Object does not exist"* ]]; then
    		echo "BUG: stat should fail. succeeded."
    		exit_1
    	fi
    	loop_count=$((loop_count + 1))
    done
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 11:38:26 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/net/parse.go

    			f.data = f.data[0 : ln+n]
    		}
    		if err == io.EOF || err == io.ErrUnexpectedEOF {
    			f.atEOF = true
    		}
    	}
    	s, ok = f.getLineFromData()
    	return
    }
    
    func (f *file) stat() (mtime time.Time, size int64, err error) {
    	st, err := f.file.Stat()
    	if err != nil {
    		return time.Time{}, 0, err
    	}
    	return st.ModTime(), st.Size(), nil
    }
    
    func open(name string) (*file, error) {
    	fd, err := os.Open(name)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. cmd/metrics-v2.go

    					Value:          stat.Failed.LastMinute.Count,
    					VariableLabels: map[string]string{"endpoint": stat.Endpoint},
    				})
    				ml = append(ml, MetricV2{
    					Description:    getRepFailedBytesLastHourMD(clusterMetricNamespace),
    					Value:          float64(stat.Failed.LastHour.Bytes),
    					VariableLabels: map[string]string{"endpoint": stat.Endpoint},
    				})
    				ml = append(ml, MetricV2{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top