Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UsesDataDir (0.09 sec)

  1. cmd/xl-storage-format-v2.go

    func (x xlMetaV2VersionHeader) FreeVersion() bool {
    	return x.Flags&xlFlagFreeVersion != 0
    }
    
    // UsesDataDir returns true if this object version uses its data directory for
    // its contents and false otherwise.
    func (x xlMetaV2VersionHeader) UsesDataDir() bool {
    	return x.Flags&xlFlagUsesDataDir != 0
    }
    
    // InlineData returns whether inline data has been set.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  2. cmd/xl-storage-format-v2_test.go

    	trimmed[len(trimmed)-10] += 10
    	if err := xl2.Load(trimmed); err == nil {
    		t.Fatal("metadata corruption not detected")
    	}
    }
    
    // TestUsesDataDir tests xlMetaV2.UsesDataDir
    func TestUsesDataDir(t *testing.T) {
    	vID := uuid.New()
    	dataDir := uuid.New()
    	transitioned := make(map[string][]byte)
    	transitioned[ReservedMetadataPrefixLower+TransitionStatus] = []byte(lifecycle.TransitionComplete)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top