Tar: Fix PAX regression when handling the size of really long unseekable data streams...
authorCarlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
Mon, 17 Jul 2023 22:19:08 +0000 (15:19 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 22:19:08 +0000 (15:19 -0700)
commit2268fb323b49e482bc049bad5d6074e40bf4f543
tree720244acd64bf566e7e0083e67713e2e0ba8c090
parentbf78b40fa91cac37c791fefbbeb4d0c5f08773b5
Tar: Fix PAX regression when handling the size of really long unseekable data streams (#88280)

* Fix regression introduced by https://github.com/dotnet/runtime/pull/84279 preventing PAX entries with really long data streams to get its size correctly stored in the extended attributes when the data stream is unseekable.

* Move tests for large files to a new manual tests project.
src/libraries/System.Formats.Tar/System.Formats.Tar.sln
src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarHeader.Write.cs
src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarWriter.cs
src/libraries/System.Formats.Tar/tests/Manual/ManualTests.cs [new file with mode: 0644]
src/libraries/System.Formats.Tar/tests/Manual/ManualTestsAsync.cs [new file with mode: 0644]
src/libraries/System.Formats.Tar/tests/Manual/System.Formats.Tar.Manual.Tests.csproj [new file with mode: 0644]
src/libraries/System.Formats.Tar/tests/System.Formats.Tar.Tests.csproj
src/libraries/System.Formats.Tar/tests/TarWriter/TarWriter.WriteEntry.LongFile.Tests.cs [deleted file]
src/libraries/System.Formats.Tar/tests/TarWriter/TarWriter.WriteEntryAsync.LongFile.Tests.cs [deleted file]