Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve the decision of reducing the size of the GEA path.
  • Loading branch information
carlossanlop committed Jun 22, 2022
commit 589540883bc26a489601bc7d1a97e5e909b6fa9d
Original file line number Diff line number Diff line change
Expand Up @@ -627,12 +627,12 @@ private static string GenerateGlobalExtendedAttributeName(int globalExtendedAttr
int processId = Environment.ProcessId;

string result = string.Format(GlobalHeadFormatPrefix, tmpDir, processId);
if (result.Length >= FieldLengths.Name)
string suffix = $".{globalExtendedAttributesEntryNumber}"; // GEA sequence number
if (result.Length + suffix.Length >= FieldLengths.Name)
{
result = string.Format(GlobalHeadFormatPrefix, "/tmp", processId);
}

result += $".{globalExtendedAttributesEntryNumber}"; // Suffix is ".{sequenceNumber}"
result += suffix;

return result;
}
Expand Down