Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for PAXRecords (0.07 sec)

  1. src/archive/tar/common.go

    	//
    	// The following are semantically equivalent:
    	//  h.Xattrs[key] = value
    	//  h.PAXRecords["SCHILY.xattr."+key] = value
    	//
    	// When Writer.WriteHeader is called, the contents of Xattrs will take
    	// precedence over those in PAXRecords.
    	//
    	// Deprecated: Use PAXRecords instead.
    	Xattrs map[string]string
    
    	// PAXRecords is a map of PAX extended header records.
    	//
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. src/archive/tar/reader_test.go

    			ModTime:  time.Unix(0, 0),
    			PAXRecords: map[string]string{
    				"GOLANG.pkg": "tar",
    				"comment":    "Hello, 世界",
    				"uname":      strings.Repeat("long", 10),
    			},
    			Format: FormatPAX,
    		}},
    	}, {
    		file: "testdata/pax-global-records.tar",
    		headers: []*Header{{
    			Typeflag:   TypeXGlobalHeader,
    			Name:       "global1",
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		tests: []testFnc{
    			testHeader{Header{
    				Typeflag:   TypeXGlobalHeader,
    				PAXRecords: map[string]string{"path": "global1", "mtime": "1500000000.0"},
    			}, nil},
    			testHeader{Header{
    				Typeflag: TypeReg, Name: "file1",
    			}, nil},
    			testHeader{Header{
    				Typeflag:   TypeReg,
    				Name:       "file2",
    				PAXRecords: map[string]string{"path": "file2"},
    			}, nil},
    			testHeader{Header{
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. src/archive/tar/reader.go

    	var is1x0 bool
    	major, minor := hdr.PAXRecords[paxGNUSparseMajor], hdr.PAXRecords[paxGNUSparseMinor]
    	switch {
    	case major == "0" && (minor == "0" || minor == "1"):
    		is1x0 = false
    	case major == "1" && minor == "0":
    		is1x0 = true
    	case major != "" || minor != "":
    		return nil, nil // Unknown GNU sparse PAX version
    	case hdr.PAXRecords[paxGNUSparseMap] != "":
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/archive/tar/tar_test.go

    	tw := NewWriter(&b)
    	hdr := &Header{
    		Name:       "file.txt",
    		Uid:        1 << 21, // Too big for 8 octal digits
    		Size:       int64(len(data)),
    		ModTime:    time.Now().Round(time.Second),
    		PAXRecords: map[string]string{"uid": "2097152"},
    		Format:     FormatPAX,
    		Typeflag:   TypeReg,
    	}
    	if err := tw.WriteHeader(hdr); err != nil {
    		t.Fatalf("tw.WriteHeader: %v", err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. cmd/object-handlers.go

    		}
    
    		var (
    			versionID string
    			hdrs      http.Header
    		)
    
    		if tarHdrs, ok := info.Sys().(*tar.Header); ok && len(tarHdrs.PAXRecords) > 0 {
    			versionID = tarHdrs.PAXRecords["minio.versionId"]
    			hdrs = make(http.Header)
    			for k, v := range tarHdrs.PAXRecords {
    				if k == "minio.versionId" {
    					continue
    				}
    				if strings.HasPrefix(k, "minio.metadata.") {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top