  
     sd = jcr->store_bsock;
  
-@@ -134,6 +229,20 @@
+@@ -134,6 +240,20 @@
        ok = false;                     /* error */
        set_jcr_job_status(jcr, JS_ErrorTerminated);
     }

+int db_accurate_mark_file_for_backup(JCR *jcr, B_DB *mdb, char *fname, JobId_t JobId)
+{
+   int stat;
+   int len=strlen(fname);
+   char ed1[50];
+   db_lock(mdb);
+   /* TODO: mdb->esc_xxx are already ok but it's more smart to recompute it */

 
 /* Commands sent to File daemon */
 static char backupcmd[] = "backup\n";
@@ -97,6 +98,411 @@
 }
 
 /*
