MCPcopy Create free account
hub / github.com/apache/cloudberry / _tarWriteHeader

Function _tarWriteHeader

src/bin/pg_dump/pg_backup_tar.c:1372–1383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1370
1371
1372static void
1373_tarWriteHeader(TAR_MEMBER *th)
1374{
1375 char h[TAR_BLOCK_SIZE];
1376
1377 tarCreateHeader(h, th->targetFile, NULL, th->fileLen,
1378 0600, 04000, 02000, time(NULL));
1379
1380 /* Now write the completed header. */
1381 if (fwrite(h, 1, TAR_BLOCK_SIZE, th->tarFH) != TAR_BLOCK_SIZE)
1382 WRITE_ERROR_EXIT;
1383}

Callers 1

_tarAddFileFunction · 0.70

Calls 1

tarCreateHeaderFunction · 0.85

Tested by

no test coverage detected