Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TypeGNUSparse (0.08 sec)

  1. src/archive/tar/common.go

    		if len(h.SparseHoles) > 0 || h.Typeflag == TypeGNUSparse {
    			if isHeaderOnlyType(h.Typeflag) {
    				return FormatUnknown, nil, headerError{"header-only type cannot be sparse"}
    			}
    			if !validateSparseEntries(h.SparseHoles, h.Size) {
    				return FormatUnknown, nil, headerError{"invalid sparse holes"}
    			}
    			if h.Typeflag == TypeGNUSparse {
    				whyOnlyGNU = "only GNU supports TypeGNUSparse"
    				format.mayOnlyBe(FormatGNU)
    			} else {
    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/writer_test.go

    		// See https://golang.org/issue/22735
    		/*
    			}, {
    				file: "testdata/gnu-nil-sparse-data.tar",
    				tests: []testFnc{
    					testHeader{Header{
    						Typeflag:    TypeGNUSparse,
    						Name:        "sparse.db",
    						Size:        1000,
    						SparseHoles: []sparseEntry{{Offset: 1000, Length: 0}},
    					}, nil},
    					testWrite{strings.Repeat("0123456789", 100), 1000, nil},
    					testClose{},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    		headers: []*Header{{
    			Name:     "sparse.db",
    			Typeflag: TypeGNUSparse,
    			Size:     1000,
    			ModTime:  time.Unix(0, 0),
    			Format:   FormatGNU,
    		}},
    	}, {
    		// Generated by Go, works on BSD tar v3.1.2 and GNU tar v.1.27.1.
    		file: "testdata/gnu-nil-sparse-hole.tar",
    		headers: []*Header{{
    			Name:     "sparse.db",
    			Typeflag: TypeGNUSparse,
    			Size:     1000,
    			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)
  4. src/archive/tar/writer.go

    		f.formatNumeric(blk.toGNU().changeTime(), hdr.ChangeTime.Unix())
    	}
    	// TODO(dsnet): Re-enable this when adding sparse support.
    	// See https://golang.org/issue/22735
    	/*
    		if hdr.Typeflag == TypeGNUSparse {
    			sph := append([]sparseEntry{}, hdr.SparseHoles...) // Copy sparse map
    			sph = alignSparseEntries(sph, hdr.Size)
    			spd = invertSparseEntries(sph, hdr.Size)
    
    			// Format the sparse map.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    // and sets the curr reader appropriately.
    func (tr *Reader) handleSparseFile(hdr *Header, rawHdr *block) error {
    	var spd sparseDatas
    	var err error
    	if hdr.Typeflag == TypeGNUSparse {
    		spd, err = tr.readOldGNUSparseMap(hdr, rawHdr)
    	} else {
    		spd, err = tr.readGNUSparsePAXHeaders(hdr)
    	}
    
    	// If sp is non-nil, then this is a sparse file.
    	// Note that it is possible for len(sp) == 0.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top