85 references to Pax
Microsoft.Build.Tasks.Core (4)
TarDirectory.cs (4)
89
/// This parameter is optional; when empty, <see cref="TarEntryFormat.
Pax
"/> is used.
420
/// <see cref="TarEntryFormat.
Pax
"/> default.
425
format = TarEntryFormat.
Pax
;
439
format = parsed == TarEntryFormat.Unknown ? TarEntryFormat.
Pax
: parsed;
Microsoft.NET.Build.Containers (7)
Layer.cs (1)
106
using (TarWriter writer = new(layerStream, TarEntryFormat.
Pax
, leaveOpen: true))
LocalDaemons\ContainerArchive.cs (3)
61
using TarWriter writer = new(imageStream, TarEntryFormat.
Pax
, leaveOpen: true);
81
using TarWriter writer = new(imageStream, TarEntryFormat.
Pax
, leaveOpen: true);
96
using TarWriter writer = new(imageStream, TarEntryFormat.
Pax
, leaveOpen: true);
LocalDaemons\DockerCli.cs (3)
312
using TarWriter writer = new(imageStream, TarEntryFormat.
Pax
, leaveOpen: true);
419
using TarWriter writer = new(imageStream, TarEntryFormat.
Pax
, leaveOpen: true);
515
using TarWriter writer = new(imageStream, TarEntryFormat.
Pax
, leaveOpen: true);
System.Formats.Tar (74)
System\Formats\Tar\GnuTarEntry.cs (1)
45
/// <para>When creating an instance of <see cref="GnuTarEntry"/> using this constructor, if <paramref name="other"/> is <see cref="TarEntryFormat.Gnu"/> or <see cref="TarEntryFormat.
Pax
"/>, then the <see cref="AccessTime"/> and <see cref="ChangeTime"/> properties are set to the same values set in <paramref name="other"/>. But if <paramref name="other"/> is of any other format, then <see cref="AccessTime"/> and <see cref="ChangeTime"/> are set to <see langword="default" />, which in the entry header <c>atime</c> and <c>ctime</c> fields is written as null bytes. This ensures compatibility with other tools that are unable to read the <c>atime</c> and <c>ctime</c> in <see cref="TarEntryFormat.Gnu"/> entries, as these two fields are not POSIX compatible because other formats expect the <c>prefix</c> field in the same header location where <see cref="TarEntryFormat.Gnu"/> writes <c>atime</c> and <c>ctime</c>.</para>
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (2)
16
: base(header, readerOfOrigin, TarEntryFormat.
Pax
)
26
: base(TarEntryType.GlobalExtendedAttributes, nameof(PaxGlobalExtendedAttributesTarEntry), TarEntryFormat.
Pax
, isGea: true) // Name == name of type for lack of a better temporary name until the entry is written
System\Formats\Tar\PaxTarEntry.cs (5)
17
: base(header, readerOfOrigin, TarEntryFormat.
Pax
)
38
: base(entryType, entryName, TarEntryFormat.
Pax
, isGea: false)
67
: base(entryType, entryName, TarEntryFormat.
Pax
, isGea: false)
89
: base(other, TarEntryFormat.
Pax
)
91
if (other._header._format is TarEntryFormat.Ustar or TarEntryFormat.
Pax
)
System\Formats\Tar\PosixTarEntry.cs (1)
9
/// Abstract class that represents a tar entry from an archive of a format that is based on the POSIX IEEE P1003.1 standard from 1988. This includes the formats <see cref="TarEntryFormat.Ustar"/> (represented by the <see cref="UstarTarEntry"/> class), <see cref="TarEntryFormat.
Pax
"/> (represented by the <see cref="PaxTarEntry"/> class) and <see cref="TarEntryFormat.Gnu"/> (represented by the <see cref="GnuTarEntry"/> class).
System\Formats\Tar\TarEntry.cs (1)
15
/// <remarks>All the properties exposed by this class are supported by the <see cref="TarEntryFormat.V7"/>, <see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/> formats.</remarks>
System\Formats\Tar\TarEntryType.cs (1)
14
/// <para>This entry type is specific to the <see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/> formats.</para>
System\Formats\Tar\TarFile.cs (4)
21
=> CreateFromDirectory(sourceDirectoryName, destination, includeBaseDirectory, TarEntryFormat.
Pax
);
81
=> CreateFromDirectoryAsync(sourceDirectoryName, destination, includeBaseDirectory, TarEntryFormat.
Pax
, cancellationToken);
149
=> CreateFromDirectory(sourceDirectoryName, destinationFileName, includeBaseDirectory, TarEntryFormat.
Pax
);
204
=> CreateFromDirectoryAsync(sourceDirectoryName, destinationFileName, includeBaseDirectory, TarEntryFormat.
Pax
, cancellationToken);
System\Formats\Tar\TarHeader.cs (5)
169
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> UstarMagic,
176
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> UstarVersion,
192
if (_format == TarEntryFormat.
Pax
&& _ea is not null)
209
if (_format == TarEntryFormat.
Pax
&& _ea is not null)
221
if (_format == TarEntryFormat.
Pax
&& _ea is not null)
System\Formats\Tar\TarHeader.Read.cs (4)
63
Debug.Assert(header._format is TarEntryFormat.Ustar or TarEntryFormat.
Pax
or TarEntryFormat.Gnu);
64
if (header._format is TarEntryFormat.Ustar or TarEntryFormat.
Pax
)
466
TarEntryType.GlobalExtendedAttributes => TarEntryFormat.
Pax
,
553
case TarEntryFormat.Ustar or TarEntryFormat.
Pax
:
System\Formats\Tar\TarHeader.Write.cs (17)
79
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> FieldLocations.PosixData,
121
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> FieldLocations.PosixData,
266
TarHeader extendedAttributesHeader = new(TarEntryFormat.
Pax
);
271
WriteWithUnseekableDataStream(TarEntryFormat.
Pax
, tempStream, buffer, shouldAdvanceToEnd: false);
288
WriteWithSeekableDataStream(TarEntryFormat.
Pax
, archiveStream, buffer);
299
TarHeader extendedAttributesHeader = new(TarEntryFormat.
Pax
);
306
await WriteWithUnseekableDataStreamCoreAsync<TAdapter>(TarEntryFormat.
Pax
, tempStream, buffer, shouldAdvanceToEnd: false, cancellationToken).ConfigureAwait(false);
330
await WriteWithSeekableDataStreamCoreAsync<TAdapter>(TarEntryFormat.
Pax
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
465
WriteWithSeekableDataStream(TarEntryFormat.
Pax
, archiveStream, buffer);
473
return WriteWithSeekableDataStreamCoreAsync<TAdapter>(TarEntryFormat.
Pax
, archiveStream, buffer, cancellationToken);
494
tmpChecksum += WriteCommonFields(buffer, TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.
Pax
, _typeFlag));
512
case TarEntryFormat.
Pax
:
650
if (_format is not TarEntryFormat.
Pax
and not TarEntryFormat.Gnu)
708
if (_format is not TarEntryFormat.
Pax
)
726
if (_format is not TarEntryFormat.
Pax
)
1039
if (isOctalRange || _format == TarEntryFormat.
Pax
)
1065
if (isOctalRange || _format == TarEntryFormat.
Pax
)
System\Formats\Tar\TarHelpers.cs (1)
334
case TarEntryFormat.
Pax
:
System\Formats\Tar\TarReader.cs (6)
99
/// <para>More than one Global Extended Attributes Entry was found in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para>
101
/// <para>Two or more Extended Attributes entries were found consecutively in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para></exception>
136
/// <para>More than one Global Extended Attributes Entry was found in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para>
138
/// <para>Two or more Extended Attributes entries were found consecutively in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para></exception>
218
TarEntryFormat.
Pax
=> header._typeFlag is TarEntryType.GlobalExtendedAttributes ?
288
TarHeader? actualHeader = await TarHeader.TryGetNextHeaderCoreAsync<TAdapter>(_archiveStream, copyData, TarEntryFormat.
Pax
, processDataBlock: false, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarWriter.cs (21)
28
/// <remarks>When using this constructor, <see cref="TarEntryFormat.
Pax
"/> is used as the default format of the entries written to the archive using the <see cref="WriteEntry(string, string?)"/> method.</remarks>
31
/// <remarks>The <see cref="TarEntryFormat.
Pax
"/> format is the default format as it is the most flexible and POSIX compatible. This is the only format with which <see cref="TarWriter"/> reads and stores <c>atime</c> and <c>ctime</c> when creating entries from filesystem entries.</remarks>
33
: this(archiveStream, TarEntryFormat.
Pax
, leaveOpen: false)
38
/// Initializes a <see cref="TarWriter"/> instance that can write tar entries to the specified stream and optionally leaves the stream open upon disposal of this instance. When using this constructor, the format of the resulting archive is <see cref="TarEntryFormat.
Pax
"/>.
44
/// <remarks>The <see cref="TarEntryFormat.
Pax
"/> format is the default format as it is the most flexible and POSIX compatible. This is the only format with which <see cref="TarWriter"/> reads and stores <c>atime</c> and <c>ctime</c> when creating entries from filesystem entries.</remarks>
46
: this(archiveStream, TarEntryFormat.
Pax
, leaveOpen)
55
/// <param name="format">The format to use when calling <see cref="WriteEntry(string, string?)"/>. The default value is <see cref="TarEntryFormat.
Pax
"/>.</param>
58
/// <remarks>The recommended format is <see cref="TarEntryFormat.
Pax
"/> for its flexibility.</remarks>
62
/// <remarks>The <see cref="TarEntryFormat.
Pax
"/> format is the default for the other <see cref="TarWriter"/> constructors. This is the recommended format as it is the most flexible and POSIX compatible. This is the only format with which <see cref="TarWriter"/> reads and stores <c>atime</c> and <c>ctime</c> when creating entries from filesystem entries.</remarks>
63
public TarWriter(Stream archiveStream, TarEntryFormat format = TarEntryFormat.
Pax
, bool leaveOpen = false)
70
if (format is not TarEntryFormat.V7 and not TarEntryFormat.Ustar and not TarEntryFormat.
Pax
and not TarEntryFormat.Gnu)
155
/// <para>The entry will be created using the format specified in the <see cref="TarWriter(Stream, TarEntryFormat, bool)"/> constructor, or will use <see cref="TarEntryFormat.
Pax
"/> if other constructors are used.</para>
156
/// <para>If the format is <see cref="TarEntryFormat.
Pax
"/>, the <c>atime</c> and <c>ctime</c> from the file will be stored in the <see cref="PaxTarEntry.ExtendedAttributes"/> dictionary. If the format is <see cref="TarEntryFormat.Gnu"/>, this method will not set a value for <see cref="GnuTarEntry.AccessTime"/> and <see cref="GnuTarEntry.ChangeTime"/> because most TAR tools do not support these fields for this format.</para>
177
/// <para>The entry will be created using the format specified in the <see cref="TarWriter(Stream, TarEntryFormat, bool)"/> constructor, or will use <see cref="TarEntryFormat.
Pax
"/> if other constructors are used.</para>
178
/// <para>If the format is <see cref="TarEntryFormat.
Pax
"/>, the <c>atime</c> and <c>ctime</c> from the file will be stored in the <see cref="PaxTarEntry.ExtendedAttributes"/> dictionary. If the format is <see cref="TarEntryFormat.Gnu"/>, this method will not set a value for <see cref="GnuTarEntry.AccessTime"/> and <see cref="GnuTarEntry.ChangeTime"/> because most TAR tools do not support these fields for this format.</para>
223
/// <para><see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/></para>
242
/// <para>To ensure an entry preserves the <c>atime</c> and <c>ctime</c> values and it is readable by other tools, it is recommended to convert the entry to <see cref="PaxTarEntry"/> instead. In that format, the two values get stored in the <see cref="PaxTarEntry.ExtendedAttributes"/>. The <see cref="TarEntryFormat.
Pax
"/> format is used as the default format by <see cref="TarWriter"/> as it is the most flexible and POSIX compatible.</para>
271
/// <para><see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/></para>
317
case TarEntryFormat.
Pax
:
353
TarEntryFormat.
Pax
when entry._header._typeFlag is TarEntryType.GlobalExtendedAttributes => entry._header.WriteAsPaxGlobalExtendedAttributesCoreAsync<TAdapter>(_archiveStream, buffer, _nextGlobalExtendedAttributesEntryNumber++, cancellationToken),
354
TarEntryFormat.
Pax
=> entry._header.WriteAsPaxCoreAsync<TAdapter>(_archiveStream, buffer, cancellationToken),
System\Formats\Tar\TarWriter.Unix.cs (1)
69
TarEntryFormat.
Pax
=> new PaxTarEntry(entryType, entryName),
System\Formats\Tar\TarWriterOptions.cs (3)
14
/// <value>The default value is <see cref="TarEntryFormat.
Pax
"/>.</value>
21
if (value is not TarEntryFormat.V7 and not TarEntryFormat.Ustar and not TarEntryFormat.
Pax
and not TarEntryFormat.Gnu)
27
} = TarEntryFormat.
Pax
;
System\Formats\Tar\UstarTarEntry.cs (1)
47
if (other._header._format is TarEntryFormat.Ustar or TarEntryFormat.
Pax
)