From 46caeab2cd8380b42b72e196edd8278cd911c580 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 21 May 2025 20:23:23 +0200 Subject: [PATCH] Warn about old (0.5.x or earlier) on-disk afhi. Nine years ago, starting with commit 234647bb5, old on-disk entries are reported with a notice to re-add the file in order to update the audio file table. Bump the loglevel for now, and add a comment to turn the check into a hard error eventually. --- aft.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aft.c b/aft.c index 4a4c46fc..b10e7bd1 100644 --- a/aft.c +++ b/aft.c @@ -616,9 +616,10 @@ static int save_afd(struct audio_file_data *afd) buf = shm_afd; buf += sizeof(*afd); save_chunk_table(&afd->afhi, buf); + /* This check can be turned into a hard error after 0.8.0 */ if (afd->afhi.max_chunk_size == 0) { /* v0.5.x on-disk afhi */ set_max_chunk_size(&afd->afhi); - PARA_NOTICE_LOG("max chunk size unset, re-add required\n"); + PARA_WARNING_LOG("max chunk size unset, re-add required\n"); } else PARA_INFO_LOG("using max chunk size from afhi\n"); afd->max_chunk_size = afd->afhi.max_chunk_size; -- 2.39.5