Home | History | Annotate | Download | only in tar

Lines Matching refs:hdr

264 	hdr, err := FileInfoHeader(fileinfo, "")
270 contents := strings.Repeat(" ", int(hdr.Size))
271 hdr.Name = longName
274 if err := writer.WriteHeader(hdr); err != nil {
289 hdr, err = reader.Next()
293 if hdr.Name != longName {
304 hdr, err := FileInfoHeader(fileinfo, "")
305 hdr.Typeflag = TypeSymlink
311 hdr.Linkname = longLinkname
313 hdr.Size = 0
316 if err := writer.WriteHeader(hdr); err != nil {
328 hdr, err = reader.Next()
332 if hdr.Linkname != longLinkname {
345 hdr, err := FileInfoHeader(fileinfo, "")
355 hdr.Name = chineseFilename
356 hdr.Gname = chineseGroupname
357 hdr.Uname = chineseUsername
359 contents := strings.Repeat(" ", int(hdr.Size))
363 if err := writer.WriteHeader(hdr); err != nil {
378 hdr, err = reader.Next()
382 if hdr.Name != chineseFilename {
385 if hdr.Gname != chineseGroupname {
388 if hdr.Uname != chineseUsername {
403 hdr, err := FileInfoHeader(fileinfo, "")
408 hdr.Xattrs = xattrs
411 if err := writer.WriteHeader(hdr); err != nil {
422 hdr, err = reader.Next()
426 if !reflect.DeepEqual(hdr.Xattrs, xattrs) {
428 hdr.Xattrs, xattrs)
437 hdr, err := FileInfoHeader(fileinfo, "")
441 contents := strings.Repeat(" ", int(hdr.Size))
443 hdr.Xattrs = map[string]string{
452 if err := writer.WriteHeader(hdr); err != nil {
484 hdr, err := FileInfoHeader(fileinfo, "")
485 hdr.Typeflag = TypeDir
492 hdr.Name = longName
494 hdr.Size = 0
497 if err := writer.WriteHeader(hdr); err != nil {
505 hdr, err = reader.Next()
509 if hdr.Name != longName {
520 hdr := &Header{
525 if err := tw.WriteHeader(hdr); err != nil {
553 hdr := &Header{
557 if err := tw.WriteHeader(hdr); err != nil {
639 hdr, err := tr.Next()
643 if hdr.Name != name {
644 t.Errorf("test %d, hdr.Name = %s, want %s", i, hdr.Name, name)