Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 89 for fileInfo (0.05 seconds)

  1. cmd/erasure-healing.go

    // Only heal on disks where we are sure that healing is needed. We can expand
    // this list as and when we figure out more errors can be added to this list safely.
    func shouldHealObjectOnDisk(erErr error, partsErrs []int, meta FileInfo, latestMeta FileInfo) (bool, bool, error) {
    	if errors.Is(erErr, errFileNotFound) || errors.Is(erErr, errFileVersionNotFound) || errors.Is(erErr, errFileCorrupt) {
    		return true, true, erErr
    	}
    	if erErr == nil {
    		if meta.XLV1 {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  2. cmd/xl-storage-format-utils_test.go

    			if got := hashDeterministicString(m); got == want {
    				t.Errorf("hashDeterministicString() = %v, does not want %v", got, want)
    			}
    		})
    	}
    }
    
    func TestGetFileInfoVersions(t *testing.T) {
    	basefi := FileInfo{
    		Volume:           "volume",
    		Name:             "object-name",
    		VersionID:        "756100c6-b393-4981-928a-d49bbc164741",
    		IsLatest:         true,
    		Deleted:          false,
    		TransitionStatus: "",
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. src/archive/tar/common.go

    			err = headerError{whyNoUSTAR, whyNoPAX, whyNoGNU, whyOnlyPAX, whyOnlyGNU}
    		}
    	}
    	return format, paxHdrs, err
    }
    
    // FileInfo returns an fs.FileInfo for the Header.
    func (h *Header) FileInfo() fs.FileInfo {
    	return headerFileInfo{h}
    }
    
    // headerFileInfo implements fs.FileInfo.
    type headerFileInfo struct {
    	h *Header
    }
    
    func (fi headerFileInfo) Size() int64        { return fi.h.Size }
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Oct 07 19:46:36 GMT 2025
    - 24.5K bytes
    - Click Count (0)
  4. api/except.txt

    pkg os, method (FileMode) String() string
    pkg os, type FileInfo interface { IsDir, ModTime, Mode, Name, Size, Sys }
    pkg os, type FileInfo interface, IsDir() bool
    pkg os, type FileInfo interface, ModTime() time.Time
    pkg os, type FileInfo interface, Mode() FileMode
    pkg os, type FileInfo interface, Name() string
    pkg os, type FileInfo interface, Size() int64
    pkg os, type FileInfo interface, Sys() interface{}
    pkg os, type FileMode uint32
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Sun Jun 16 23:08:08 GMT 2024
    - 34.8K bytes
    - Click Count (0)
  5. cmd/xl-storage-free-version_test.go

    package cmd
    
    import (
    	"errors"
    	"testing"
    	"time"
    
    	"github.com/google/uuid"
    	"github.com/minio/minio/internal/bucket/lifecycle"
    )
    
    func (x xlMetaV2) listFreeVersions(volume, path string) ([]FileInfo, error) {
    	fivs, err := x.ListVersions(volume, path, true)
    	if err != nil {
    		return nil, err
    	}
    	n := 0
    	for _, fiv := range fivs {
    		if fiv.TierFreeVersion() {
    			fivs[n] = fiv
    			n++
    		}
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Click Count (0)
  6. cmd/storage-rest-client.go

    	if err != nil {
    		return err
    	}
    	_, err = waitForHTTPResponse(respBody)
    	return toStorageErr(err)
    }
    
    func (client *storageRESTClient) WriteMetadata(ctx context.Context, origvolume, volume, path string, fi FileInfo) error {
    	ctx, cancel := context.WithTimeout(ctx, globalDriveConfig.GetMaxTimeout())
    	defer cancel()
    
    	_, err := storageWriteMetadataRPC.Call(ctx, client.gridConn, &MetadataHandlerParams{
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 08 02:38:41 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  7. cmd/storage-datatypes_test.go

    	b.SetBytes(1)
    	b.ReportAllocs()
    
    	for b.Loop() {
    		err := enc.Encode(&v)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func BenchmarkDecodeFileInfoMsgp(b *testing.B) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  8. cmd/metacache-entries.go

    		if !v.header.FreeVersion() {
    			return false
    		}
    	}
    	return true
    }
    
    // fileInfo returns the decoded metadata.
    // If entry is a directory it is returned as that.
    // If versioned the latest version will be returned.
    func (e *metaCacheEntry) fileInfo(bucket string) (FileInfo, error) {
    	if e.isDir() {
    		return FileInfo{
    			Volume: bucket,
    			Name:   e.name,
    			Mode:   uint32(os.ModeDir),
    		}, nil
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 08 15:29:58 GMT 2024
    - 24.1K bytes
    - Click Count (0)
  9. cmd/xl-storage-format-v2.go

    	case DeleteType:
    		return j.DeleteMarker.VersionID
    	case LegacyType:
    		return [16]byte{}
    	}
    	return [16]byte{}
    }
    
    // ToFileInfo returns FileInfo of the underlying type.
    func (j *xlMetaV2Version) ToFileInfo(volume, path string, allParts bool) (fi FileInfo, err error) {
    	if j == nil {
    		return fi, errFileNotFound
    	}
    	switch j.Type {
    	case ObjectType:
    		fi, err = j.ObjectV2.ToFileInfo(volume, path, allParts)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 65.6K bytes
    - Click Count (1)
  10. cmd/xl-storage-format-v1.go

    	return nil
    }
    
    // constant and shouldn't be changed.
    const (
    	legacyDataDir = "legacy"
    )
    
    func (m *xlMetaV1Object) ToFileInfo(volume, path string) (FileInfo, error) {
    	if !m.valid() {
    		return FileInfo{}, errFileCorrupt
    	}
    
    	fi := FileInfo{
    		Volume:      volume,
    		Name:        path,
    		ModTime:     m.Stat.ModTime,
    		Size:        m.Stat.Size,
    		Metadata:    m.Meta,
    		Parts:       m.Parts,
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Oct 22 15:30:50 GMT 2024
    - 8.4K bytes
    - Click Count (0)
Back to Top