Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for PathJoin (0.1 sec)

  1. cmd/admin-heal-ops.go

    	respBytes []byte, apiErr APIError, errMsg string,
    ) {
    	if h.forceStarted {
    		_, apiErr = ahs.stopHealSequence(pathJoin(h.bucket, h.object))
    		if apiErr.Code != "" {
    			return respBytes, apiErr, ""
    		}
    	} else {
    		oh, exists := ahs.getHealSequence(pathJoin(h.bucket, h.object))
    		if exists && !oh.hasEnded() {
    			errMsg = "Heal is already running on the given path " +
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    			adminLogIf(ctx, zerr)
    			return nil
    		}
    		if _, err := io.Copy(zwriter, r); err != nil {
    			adminLogIf(ctx, err)
    		}
    		return nil
    	}
    
    	for _, f := range iamExportFiles {
    		iamFile := pathJoin(iamAssetsDir, f)
    		switch f {
    		case allPoliciesFile:
    			allPolicies, err := globalIAMSys.ListPolicies(ctx, "")
    			if err != nil {
    				adminLogIf(ctx, err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  3. cmd/object-api-utils.go

    	return strings.TrimSuffix(s, SlashSeparator) + SlashSeparator
    }
    
    // pathsJoinPrefix - like pathJoin retains trailing SlashSeparator
    // for all elements, prepends them with 'prefix' respectively.
    func pathsJoinPrefix(prefix string, elem ...string) (paths []string) {
    	paths = make([]string, len(elem))
    	for i, e := range elem {
    		paths[i] = pathJoin(prefix, e)
    	}
    	return paths
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  4. cmd/peer-s3-server.go

    			if localDrives[index] == nil {
    				return errDiskNotFound
    			}
    			volInfo, err := localDrives[index].StatVol(ctx, bucket)
    			if err != nil {
    				if opts.Deleted {
    					dvi, derr := localDrives[index].StatVol(ctx, pathJoin(minioMetaBucket, bucketMetaPrefix, deletedBucketsPrefix, bucket))
    					if derr != nil {
    						return err
    					}
    					bucketsInfo[index] = BucketInfo{Name: bucket, Deleted: dvi.Created}
    					return nil
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. cmd/data-scanner-metric.go

    		if !ok {
    			return true
    		}
    		obj, ok := value.(*currentPathTracker)
    		if !ok {
    			return true
    		}
    		strptr := (*string)(atomic.LoadPointer(obj.name))
    		if strptr != nil {
    			res = append(res, pathJoin(prefix, name, *strptr))
    		}
    		return true
    	})
    	return res
    }
    
    // activeDrives returns the number of currently active disks.
    // (since this is concurrent it may not be 100% reliable)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    }
    
    func getGroupInfoPath(group string) string {
    	return pathJoin(iamConfigGroupsPrefix, group, iamGroupMembersFile)
    }
    
    func getPolicyDocPath(name string) string {
    	return pathJoin(iamConfigPoliciesPrefix, name, iamPolicyFile)
    }
    
    func getMappedPolicyPath(name string, userType IAMUserType, isGroup bool) string {
    	if isGroup {
    		return pathJoin(iamConfigPolicyDBGroupsPrefix, name+".json")
    	}
    	switch userType {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  7. cmd/erasure-heal_test.go

    			staleDisks[j] = badDisk{nil}
    		}
    
    		staleWriters := make([]io.Writer, len(staleDisks))
    		for i, disk := range staleDisks {
    			if disk == nil {
    				continue
    			}
    			os.Remove(pathJoin(disk.String(), "testbucket", "testobject"))
    			staleWriters[i] = newBitrotWriter(disk, "", "testbucket", "testobject", erasure.ShardFileSize(test.size), test.algorithm, erasure.ShardSize())
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. cmd/metacache-set.go

    }
    
    const metacachePrefix = ".metacache"
    
    func metacachePrefixForID(bucket, id string) string {
    	return pathJoin(bucketMetaPrefix, bucket, metacachePrefix, id)
    }
    
    // objectPath returns the object path of the cache.
    func (o *listPathOptions) objectPath(block int) string {
    	return pathJoin(metacachePrefixForID(o.Bucket, o.ID), "block-"+strconv.Itoa(block)+".s2")
    }
    
    func (o *listPathOptions) SetFilter() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    			if !metaArr[index].IsValid() {
    				continue
    			}
    			if !metaArr[index].Erasure.Equal(fi.Erasure) {
    				continue
    			}
    			checksumInfo := metaArr[index].Erasure.GetChecksumInfo(partNumber)
    			partPath := pathJoin(object, metaArr[index].DataDir, fmt.Sprintf("part.%d", partNumber))
    			readers[index] = newBitrotReader(disk, metaArr[index].Data, bucket, partPath, tillOffset,
    				checksumInfo.Algorithm, checksumInfo.Hash, erasure.ShardSize())
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  10. cmd/erasure-object_test.go

    		})
    		switch statErr.(type) {
    		case VersionNotFound:
    		default:
    			t.Fatalf("Object %s is not removed", test.bucket+SlashSeparator+test.object)
    		}
    	}
    
    	if _, err = os.ReadFile(pathJoin(fsDirs[0], bucketName, "dir/obj1", "xl.meta")); err == nil {
    		t.Fatalf("xl.meta still present after removal")
    	}
    }
    
    func TestErasureDeleteObjectsErasureSet(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top