]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
dbcheck: Improve error message when trying to prune Path records with BVFS is used.
authorEric Bollengier <eric@baculasystems.com>
Fri, 25 Jan 2019 16:26:19 +0000 (17:26 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 27 Jan 2019 16:14:32 +0000 (17:14 +0100)
bacula/src/tools/dbcheck.c

index 7299371805a6476d54942ece9fcd762b89b4f4d5..51f614336fbf22acb918bd9c7e8dc3691f7b57f5 100644 (file)
@@ -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;
    }