Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getDataDir (0.07 sec)

  1. cmd/storage-datatypes.go

    		return false
    	}
    	return fi.Erasure.Equal(ofi.Erasure)
    }
    
    // GetDataDir returns an expected dataDir given FileInfo
    //   - deleteMarker returns "delete-marker"
    //   - returns "legacy" if FileInfo is XLV1 and DataDir is
    //     empty, returns DataDir otherwise
    //   - returns "dataDir"
    func (fi FileInfo) GetDataDir() string {
    	if fi.Deleted {
    		return "delete-marker"
    	}
    	if fi.XLV1 && fi.DataDir == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2.go

    	if v := bytes.Compare(x.VersionID[:], o.VersionID[:]); v != 0 {
    		return v > 0
    	}
    	// Flags
    	if x.Flags != o.Flags {
    		return x.Flags > o.Flags
    	}
    	return false
    }
    
    func (j xlMetaV2Version) getDataDir() string {
    	if j.Valid() {
    		switch j.Type {
    		case LegacyType:
    			return j.ObjectV1.DataDir
    		case ObjectType:
    			return uuid.UUID(j.ObjectV2.DataDir).String()
    		}
    	}
    	return ""
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  3. cmd/xl-storage.go

    	healing := fi.Healing()
    
    	// Replace the data of null version or any other existing version-id
    	_, ver, err := xlMeta.findVersionStr(reqVID)
    	if err == nil {
    		dataDir := ver.getDataDir()
    		if dataDir != "" && (xlMeta.SharedDataDirCountStr(reqVID, dataDir) == 0) {
    			// Purge the destination path as we are not preserving anything
    			// versioned object was not requested.
    			res.OldDataDir = dataDir
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top