@@ -61,7 +61,7 @@ static void verifybackup_version_cb(JsonManifestParseContext *context,
6161static void verifybackup_system_identifier (JsonManifestParseContext * context ,
6262 uint64 manifest_system_identifier );
6363static void verifybackup_per_file_cb (JsonManifestParseContext * context ,
64- const char * pathname , size_t size ,
64+ const char * pathname , uint64 size ,
6565 pg_checksum_type checksum_type ,
6666 int checksum_length ,
6767 uint8 * checksum_payload );
@@ -547,7 +547,7 @@ verifybackup_system_identifier(JsonManifestParseContext *context,
547547 */
548548static void
549549verifybackup_per_file_cb (JsonManifestParseContext * context ,
550- const char * pathname , size_t size ,
550+ const char * pathname , uint64 size ,
551551 pg_checksum_type checksum_type ,
552552 int checksum_length , uint8 * checksum_payload )
553553{
@@ -719,8 +719,9 @@ verify_plain_backup_file(verifier_context *context, char *relpath,
719719 if (m -> size != sb .st_size )
720720 {
721721 report_backup_error (context ,
722- "\"%s\" has size %lld on disk but size %zu in the manifest" ,
723- relpath , (long long int ) sb .st_size , m -> size );
722+ "\"%s\" has size %llu on disk but size %llu in the manifest" ,
723+ relpath , (unsigned long long ) sb .st_size ,
724+ (unsigned long long ) m -> size );
724725 m -> bad = true;
725726 }
726727
@@ -1101,7 +1102,7 @@ verify_file_checksum(verifier_context *context, manifest_file *m,
11011102 const char * relpath = m -> pathname ;
11021103 int fd ;
11031104 int rc ;
1104- size_t bytes_read = 0 ;
1105+ uint64 bytes_read = 0 ;
11051106 uint8 checksumbuf [PG_CHECKSUM_MAX_LENGTH ];
11061107 int checksumlen ;
11071108
@@ -1164,8 +1165,9 @@ verify_file_checksum(verifier_context *context, manifest_file *m,
11641165 if (bytes_read != m -> size )
11651166 {
11661167 report_backup_error (context ,
1167- "file \"%s\" should contain %zu bytes, but read %zu bytes" ,
1168- relpath , m -> size , bytes_read );
1168+ "file \"%s\" should contain %llu bytes, but read %llu bytes" ,
1169+ relpath , (unsigned long long ) m -> size ,
1170+ (unsigned long long ) bytes_read );
11691171 return ;
11701172 }
11711173
0 commit comments