Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FormatPAX (0.1 sec)

  1. src/archive/tar/reader_test.go

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

    		format.mayOnlyBe(FormatPAX)
    	}
    	if !isHeaderOnlyType(h.Typeflag) && h.Size < 0 {
    		return FormatUnknown, nil, headerError{"negative size on header-only type"}
    	}
    
    	// Check PAX records.
    	if len(h.Xattrs) > 0 {
    		for k, v := range h.Xattrs {
    			paxHdrs[paxSchilyXattr+k] = v
    		}
    		whyOnlyPAX = "only PAX supports Xattrs"
    		format.mayOnlyBe(FormatPAX)
    	}
    	if len(h.PAXRecords) > 0 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    		}
    		if err := tw.writeRawFile(name, data, flag, FormatPAX); err != nil || isGlobal {
    			return err // Global headers return here
    		}
    	}
    
    	// Pack the main header.
    	var f formatter // Ignore errors since they are expected
    	fmtStr := func(b []byte, s string) { f.formatString(b, toASCII(s)) }
    	blk := tw.templateV7Plus(hdr, fmtStr, f.formatOctal)
    	blk.setFormat(FormatPAX)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top