Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for DataDir (0.07 sec)

  1. cmd/storage-datatypes.go

    }
    
    // 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 == "" {
    		return "legacy"
    	}
    	return 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 fi.Deleted {
    			err = x.addVersion(ventry)
    		}
    		if x.SharedDataDirCount(ver.ObjectV2.VersionID, ver.ObjectV2.DataDir) > 0 {
    			// Found that another version references the same dataDir
    			// we shouldn't remove it, and only remove the version instead
    			return "", nil
    		}
    		return uuid.UUID(ver.ObjectV2.DataDir).String(), err
    	}
    
    	if fi.Deleted {
    		err = x.addVersion(ventry)
    		return "", err
    	}
    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-format-v1.go

    	// Captures all the individual object `xl.meta`.
    	Parts []ObjectPartInfo `json:"parts,omitempty"`
    
    	// Dummy values used for legacy use cases.
    	VersionID string `json:"versionId,omitempty"`
    	DataDir   string `json:"dataDir,omitempty"` // always points to "legacy"
    }
    
    // StatInfo - carries stat information of the object.
    type StatInfo struct {
    	Size    int64     `json:"size"`    // Size of the object `xl.meta`.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v1_gen.go

    		case "VersionID":
    			z.VersionID, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "VersionID")
    				return
    			}
    		case "DataDir":
    			z.DataDir, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "DataDir")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    			// PR #11758 used DataDir, preserve it
    			// for users who might have used master
    			// branch
    			xlMeta.data.remove(versionID, dataDir)
    
    			// We need to attempt delete "dataDir" on the disk
    			// due to a CopyObject() bug where it might have
    			// inlined the data incorrectly, to avoid a situation
    			// where we potentially leave "DataDir"
    			filePath := pathJoin(volumeDir, path, 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)
  6. cmd/erasure-healing-common.go

    		meta := partsMetadata[i]
    		corrupted := false
    		if filterByETag {
    			corrupted = meta.Metadata["etag"] != latestMeta.Metadata["etag"]
    		} else {
    			corrupted = !meta.ModTime.Equal(latestMeta.ModTime) || meta.DataDir != latestMeta.DataDir
    		}
    
    		if corrupted {
    			metaErrs[i] = errFileCorrupt
    			partsMetadata[i] = FileInfo{}
    			continue
    		}
    
    		if erasureDistributionReliable {
    			if !meta.IsValid() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common_test.go

    		}
    	}
    	partsMetadata[0] = partsMetadataBackup // Revert before going to the next test
    
    	// Test 3: Not synchronized DataDir
    	partsMetadataBackup = partsMetadata[1]
    	partsMetadata[1].DataDir = "foo-random"
    
    	errs = make([]error, len(erasureDisks))
    	filteredDisks, _, _ = disksWithAllParts(ctx, erasureDisks, partsMetadata,
    		errs, fi, false, bucket, object, madmin.HealDeepScan)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v2_gen.go

    						err = msgp.WrapError(err, "ObjectV2")
    						return
    					}
    					switch msgp.UnsafeString(field) {
    					case "DDir":
    						err = dc.ReadExactBytes((z.ObjectV2.DataDir)[:])
    						if err != nil {
    							err = msgp.WrapError(err, "ObjectV2", "DataDir")
    							return
    						}
    					default:
    						err = dc.Skip()
    						if err != nil {
    							err = msgp.WrapError(err, "ObjectV2")
    							return
    						}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  9. cmd/erasure-multipart.go

    	readQuorum := fi.ReadQuorum(er.defaultRQuorum())
    	// Read Part info for all parts
    	partPath := pathJoin(uploadIDPath, fi.DataDir) + SlashSeparator
    
    	// List parts in quorum
    	partNums, err := er.listParts(ctx, onlineDisks, partPath, readQuorum)
    	if err != nil {
    		// This means that fi.DataDir, is not yet populated so we
    		// return an empty response.
    		if errors.Is(err, errFileNotFound) {
    			return result, nil
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  10. cmd/erasure-healing.go

    	// differentiate it with dstDataDir for readability
    	// srcDataDir is the one used with newBitrotReader()
    	// to read existing content.
    	srcDataDir := latestMeta.DataDir
    	dstDataDir := latestMeta.DataDir
    	if latestMeta.XLV1 {
    		dstDataDir = migrateDataDir
    	}
    
    	var inlineBuffers []*bytes.Buffer
    	if !latestMeta.Deleted && !latestMeta.IsRemote() {
    		if latestMeta.InlineData() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
Back to top