Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ext (0.23 sec)

  1. cmd/metacache_test.go

    		{
    			name:   "root",
    			prefix: "object.ext",
    			want:   "",
    		},
    		{
    			name:   "rootdotslash",
    			prefix: "./object.ext",
    			want:   "",
    		},
    		{
    			name:   "rootslash",
    			prefix: "/",
    			want:   "",
    		},
    		{
    			name:   "folder",
    			prefix: "prefix/",
    			want:   "prefix/",
    		},
    		{
    			name:   "folderobj",
    			prefix: "prefix/obj.ext",
    			want:   "prefix/",
    		},
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 08 18:06:45 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  2. cmd/metacache-entries.go

    		// Root
    		idx := strings.Index(e.name, separator)
    		return idx == -1 || idx == len(e.name)-len(separator)
    	}
    	ext := strings.TrimPrefix(e.name, dir)
    	if len(ext) != len(e.name) {
    		idx := strings.Index(ext, separator)
    		// If separator is not found or is last entry, ok.
    		return idx == -1 || idx == len(ext)-len(separator)
    	}
    	return false
    }
    
    // isLatestDeletemarker returns whether the latest version is a delete marker.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    			userDefined["etag"] = opts.PreserveETag
    		}
    	}
    
    	// Guess content-type from the extension if possible.
    	if userDefined["content-type"] == "" {
    		userDefined["content-type"] = mimedb.TypeByExtension(path.Ext(object))
    	}
    
    	// if storageClass is standard no need to save it as part of metadata.
    	if userDefined[xhttp.AmzStorageClass] == storageclass.STANDARD {
    		delete(userDefined, xhttp.AmzStorageClass)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  4. internal/store/queuestore.go

    // NewQueueStore - Creates an instance for QueueStore.
    func NewQueueStore[I any](directory string, limit uint64, ext string) *QueueStore[I] {
    	if limit == 0 {
    		limit = defaultLimit
    	}
    
    	if ext == "" {
    		ext = defaultExt
    	}
    
    	return &QueueStore[I]{
    		directory:  directory,
    		entryLimit: limit,
    		fileExt:    ext,
    		entries:    make(map[string]int64, limit),
    	}
    }
    
    // Open - Creates the directory if not present.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  5. internal/disk/type_linux.go

    package disk
    
    import "strconv"
    
    // fsType2StringMap - list of filesystems supported on linux
    var fsType2StringMap = map[string]string{
    	"1021994":  "TMPFS",
    	"137d":     "EXT",
    	"4244":     "HFS",
    	"4d44":     "MSDOS",
    	"52654973": "REISERFS",
    	"5346544e": "NTFS",
    	"58465342": "XFS",
    	"61756673": "AUFS",
    	"6969":     "NFS",
    	"ef51":     "EXT2OLD",
    	"ef53":     "EXT4",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.6K bytes
    - Viewed (3)
  6. internal/disk/stat_linux_s390x.go

    package disk
    
    import (
    	"errors"
    	"fmt"
    	"strconv"
    	"syscall"
    )
    
    // fsType2StringMap - list of filesystems supported on linux
    var fsType2StringMap = map[string]string{
    	"1021994":  "TMPFS",
    	"137d":     "EXT",
    	"4244":     "HFS",
    	"4d44":     "MSDOS",
    	"52654973": "REISERFS",
    	"5346544e": "NTFS",
    	"58465342": "XFS",
    	"61756673": "AUFS",
    	"6969":     "NFS",
    	"ef51":     "EXT2OLD",
    	"ef53":     "EXT4",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  7. cmd/utils.go

    // disk since the name of this latter is randomly generated.
    type profilerWrapper struct {
    	// Profile recorded at start of benchmark.
    	records map[string][]byte
    	stopFn  func() ([]byte, error)
    	ext     string
    }
    
    // record will record the profile and store it as the base.
    func (p *profilerWrapper) record(profileType string, debug int, recordName string) {
    	var buf bytes.Buffer
    	if p.records == nil {
    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)
  8. cmd/metacache.go

    		return time.Since(cache.lastUpdate) > 5*time.Minute
    	}
    	return true
    }
    
    // baseDirFromPrefix will return the base directory given an object path.
    // For example an object with name prefix/folder/object.ext will return `prefix/folder/`.
    func baseDirFromPrefix(prefix string) string {
    	b := path.Dir(prefix)
    	if b == "." || b == "./" || b == "/" {
    		b = ""
    	}
    	if !strings.Contains(prefix, slashSeparator) {
    		b = ""
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. internal/store/queuestore_test.go

    	Property string `json:"property"`
    }
    
    var (
    	// TestDir
    	queueDir = filepath.Join(os.TempDir(), "minio_test")
    	// Sample test item.
    	testItem = TestItem{Name: "test-item", Property: "property"}
    	// Ext for test item
    	testItemExt = ".test"
    )
    
    // Initialize the queue store.
    func setUpQueueStore(directory string, limit uint64) (Store[TestItem], error) {
    	queueStore := NewQueueStore[TestItem](queueDir, limit, testItemExt)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 04 17:52:24 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  10. internal/disk/stat_linux_32bit.go

    package disk
    
    import (
    	"errors"
    	"fmt"
    	"strconv"
    	"syscall"
    )
    
    // fsType2StringMap - list of filesystems supported on linux
    var fsType2StringMap = map[string]string{
    	"1021994":  "TMPFS",
    	"137d":     "EXT",
    	"4244":     "HFS",
    	"4d44":     "MSDOS",
    	"52654973": "REISERFS",
    	"5346544e": "NTFS",
    	"58465342": "XFS",
    	"61756673": "AUFS",
    	"6969":     "NFS",
    	"ef51":     "EXT2OLD",
    	"ef53":     "EXT4",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top