src/stored/vol_mgr.c
bool is_read_volume(JCR *jcr, const char *VolumeName)
{
   VOLRES vol, *fvol;
   lock_read_volumes();
   vol.vol_name = bstrdup(VolumeName);
   fvol = (VOLRES *)read_vol_list->binary_search(&vol, name_compare);
   free(vol.vol_name);
   unlock_read_volumes();
   return fvol != NULL;
}
/*
 * Check if volume name is in the read list.
 */
Check if volume name is in the read list.
Check if volume name is in the read list .
bool is_read_volume(JCR *jcr, const char *VolumeName)
{
   VOLRES vol, *fvol;
   lock_read_volumes();
   vol.vol_name = bstrdup(VolumeName);
   fvol = (VOLRES *)read_vol_list->binary_search(&vol, name_compare);
   free(vol.vol_name);
   unlock_read_volumes();
   return fvol != NULL;
}
bool is_read_volume ( JCR * jcr , const char * VolumeName ) { VOLRES vol , * fvol ; lock_read_volumes ( ) ; vol . vol_name = bstrdup ( VolumeName ) ; fvol = ( VOLRES * ) read_vol_list -> binary_search ( & vol , name_compare ) ; free ( vol . vol_name ) ; unlock_read_volumes ( ) ; return fvol != NULL ; }
Check if volume name is in the read list.
Check if volume name is in the read list .