Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 60 for cleanup (0.17 sec)

  1. cmd/data-scanner.go

    // A compacted leaf contains the totals of all files beneath it.
    //
    // A leaf is only scanned once every dataUsageUpdateDirCycles,
    // rarer if the bloom filter for the path is clean and no lifecycles are applied.
    // Skipped leaves have their totals transferred from the previous cycle.
    //
    // When selected there is a one in healObjectSelectProb that any object will be chosen for heal scan.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    						return
    					}
    					updateReq = false
    				}
    				if updateReq {
    					// If the service account exists, we remove it to ensure a
    					// clean import.
    					err := globalIAMSys.DeleteServiceAccount(ctx, svcAcctReq.AccessKey, true)
    					if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    		actualError := &APIErrorResponse{}
    		if err = xml.Unmarshal(actualContent, actualError); err != nil {
    			t.Fatalf("Test %d: %s: Failed parsing response body: <ERROR> %v", i+1, instanceType, err)
    		}
    
    		if path.Clean(actualError.Resource) != pathJoin(SlashSeparator, testCase.bucketName, testCase.objectName) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  4. cmd/os_windows.go

    // an error.
    func readDirFn(dirPath string, filter func(name string, typ os.FileMode) error) error {
    	// Ensure we don't pick up files as directories.
    	globAll := filepath.Clean(dirPath) + `\*`
    	globAllP, err := syscall.UTF16PtrFromString(globAll)
    	if err != nil {
    		return errInvalidArgument
    	}
    	data := &syscall.Win32finddata{}
    	handle, err := syscall.FindFirstFile(globAllP, data)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. cmd/utils.go

    			newMeta[strings.TrimPrefix(k, "X-Amz-Meta-")] = v
    		} else {
    			newMeta[k] = v
    		}
    	}
    	return newMeta
    }
    
    // pathClean is like path.Clean but does not return "." for
    // empty inputs, instead returns "empty" as is.
    func pathClean(p string) string {
    	cp := path.Clean(p)
    	if cp == "." {
    		return ""
    	}
    	return cp
    }
    
    func trimLeadingSlash(ep string) string {
    	if len(ep) > 0 && ep[0] == '/' {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2-legacy.go

    			tm, err := time.Parse(time.RFC3339Nano, string(val))
    			if err == nil {
    				j.DeleteMarker.MetaSys[ReservedMetadataPrefixLower+ReplicaTimestamp] = []byte(tm.UTC().Format(time.RFC3339Nano))
    			}
    		}
    	}
    
    	// Clean up PartEtags on v1
    	if j.ObjectV2 != nil {
    		allEmpty := true
    		for _, tag := range j.ObjectV2.PartETags {
    			if len(tag) != 0 {
    				allEmpty = false
    				break
    			}
    		}
    		if allEmpty {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. cmd/endpoint.go

    		}
    
    		// As this is path in the URL, we should use path package, not filepath package.
    		// On MS Windows, filepath.Clean() converts into Windows path style ie `/foo` becomes `\foo`
    		u.Path = path.Clean(u.Path)
    		if isEmptyPath(u.Path) {
    			return ep, fmt.Errorf("empty or root path is not supported in URL endpoint")
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  8. cmd/object-api-utils_test.go

    			}
    		})
    	}
    }
    
    func Test_pathNeedsClean(t *testing.T) {
    	type pathTest struct {
    		path, result string
    	}
    
    	cleantests := []pathTest{
    		// Already clean
    		{"", "."},
    		{"abc", "abc"},
    		{"abc/def", "abc/def"},
    		{"a/b/c", "a/b/c"},
    		{".", "."},
    		{"..", ".."},
    		{"../..", "../.."},
    		{"../../abc", "../../abc"},
    		{"/abc", "/abc"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  9. cmd/erasure-healing_test.go

    		t.Fatal(err)
    	}
    
    	for _, drive := range fsDirs {
    		dir := path.Join(drive, bucket, object, uuid.String())
    		_, err := os.ReadFile(pathJoin(dir, "part.1"))
    		if err == nil {
    			t.Fatal("expected data dit to be cleaned up")
    		}
    	}
    
    	// Remove the bucket - to simulate the case where bucket was
    	// created when the disk was down.
    	err = os.RemoveAll(path.Join(fsDirs[0], bucket))
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    			Object:       objInfo,
    			ReqParams:    extractReqParams(r),
    			RespElements: extractRespElements(w),
    			UserAgent:    r.UserAgent(),
    			Host:         handlers.GetSourceIP(r),
    		})
    	}
    
    	// Clean up transitioned objects from remote tier
    	for _, os := range oss {
    		if os == nil { // skip objects that weren't deleted due to invalid versionID etc.
    			continue
    		}
    		os.Sweep()
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top