From: Eric Bollengier Date: Fri, 25 Jan 2019 16:26:19 +0000 (+0100) Subject: dbcheck: Improve error message when trying to prune Path records with BVFS is used. X-Git-Tag: Release-9.4.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e3ee085603f3715e3a31e47c5d1ff1ed513d78e;p=thirdparty%2Fbacula.git dbcheck: Improve error message when trying to prune Path records with BVFS is used. --- diff --git a/bacula/src/tools/dbcheck.c b/bacula/src/tools/dbcheck.c index 729937180..51f614336 100644 --- a/bacula/src/tools/dbcheck.c +++ b/bacula/src/tools/dbcheck.c @@ -873,9 +873,13 @@ static void eliminate_orphaned_path_records() lctx.count=0; db_sql_query(db, "SELECT 1 FROM Job WHERE HasCache=1 LIMIT 1", db_int64_handler, &lctx); - + + /* The BVFS code uses Path records that are not in the File table, for + * example if a Job has /home/test/ BVFS will need to create a Path record / + * and /home/ to work correctly + */ if (lctx.count == 1) { - printf(_("Pruning orphaned Path entries isn't possible when using BVFS.\n")); + printf(_("To prune orphaned Path entries, it is necessary to clear the BVFS Cache first with the bconsole \".bvfs_clear_cache yes\" command.\n")); return; }