]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/match_bsr.c
28Jul05
[bacula/bacula] / bacula / src / stored / match_bsr.c
index 5825f9339ea97ff0190ed2c49f5ce47931f9773e..122d3228240fec99e6cc639d6e7c7700bf0127a9 100755 (executable)
@@ -159,9 +159,13 @@ BSR *find_next_bsr(BSR *root_bsr, DEVICE *dev)
 {
    BSR *bsr;
    BSR *found_bsr = NULL;
+   bool no_file_seek = !dev->is_tape();
+#ifdef FILE_SEEK
+   no_file_seek = false;
+#endif
 
    if (!root_bsr || !root_bsr->use_positioning ||
-       !root_bsr->reposition /* || !dev->is_tape()*/) {
+       !root_bsr->reposition || no_file_seek) {
       Dmsg2(300, "No nxt_bsr use_pos=%d repos=%d\n", root_bsr->use_positioning, root_bsr->reposition);
       return NULL;
    }