Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getFileInfoVersions (0.17 sec)

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

    		}
    	}
    	buf, err := xl.AppendTo(nil)
    	if err != nil {
    		t.Fatalf("Failed to serialize xlmeta %v", err)
    	}
    	fivs, err := getFileInfoVersions(buf, basefi.Volume, basefi.Name, false)
    	if err != nil {
    		t.Fatalf("getFileInfoVersions failed: %v", err)
    	}
    	chkNumVersions := func(fis []FileInfo) bool {
    		for i := 0; i < len(fis)-1; i++ {
    			if fis[i].NumVersions != fis[i+1].NumVersions {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-utils.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"errors"
    
    	"github.com/zeebo/xxh3"
    )
    
    // getFileInfoVersions partitions this object's versions such that,
    //   - fivs.Versions has all the non-free versions
    //   - fivs.FreeVersions has all the free versions
    //
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. cmd/metacache-entries.go

    			Versions: []FileInfo{
    				{
    					Volume: bucket,
    					Name:   e.name,
    					Mode:   uint32(os.ModeDir),
    				},
    			},
    		}, nil
    	}
    	// Too small gains to reuse cache here.
    	return getFileInfoVersions(e.metadata, bucket, e.name, true)
    }
    
    // metaCacheEntries is a slice of metacache entries.
    type metaCacheEntries []metaCacheEntry
    
    // less function for sorting.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    		if err != nil {
    			res["err"] = err.Error()
    			return sizeSummary{}, errSkipFile
    		}
    
    		// Remove filename which is the meta file.
    		item.transformMetaDir()
    
    		fivs, err := getFileInfoVersions(buf, item.bucket, item.objectPath(), false)
    		metaDataPoolPut(buf)
    		if err != nil {
    			res["err"] = err.Error()
    			return sizeSummary{}, errSkipFile
    		}
    
    		sizeS := sizeSummary{}
    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