X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fdev.c;h=ab671bdcfd972f6e909ae64089abfdf98aa187fe;hb=a038cf98053a0bd2b0cfcd073d911ef1bd09b7bc;hp=b34e814b4d778f3e0d2741dc4ab1d3fcffe638d2;hpb=1fa734016fd373dab3091f26e1571a5785e1fa9a;p=bacula%2Fbacula diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index b34e814b4d..ab671bdcfd 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -79,10 +79,6 @@ #define O_NONBLOCK 0 #endif -/* Functions in dvd.c */ -void update_free_space_dev(DEVICE* dev); - - /* Forward referenced functions */ void set_os_device_parameters(DEVICE *dev); static bool dev_get_os_pos(DEVICE *dev, struct mtget *mt_stat); @@ -276,7 +272,7 @@ DEVICE::open(DCR *dcr, int omode) } Dmsg4(29, "open dev: tape=%d dev_name=%s vol=%s mode=%s\n", is_tape(), - dev_name, VolCatInfo.VolCatName, mode_to_str(omode)); + print_name(), VolCatInfo.VolCatName, mode_to_str(omode)); state &= ~(ST_LABEL|ST_APPEND|ST_READ|ST_EOT|ST_WEOT|ST_EOF); label_type = B_BACULA_LABEL; if (is_tape() || is_fifo()) { @@ -555,12 +551,6 @@ void DEVICE::open_dvd_device(DCR *dcr, int omode) } } } - Dmsg4(29, "open dev: DVD fd=%d opened, part=%d nump=%d, part_size=%u\n", - fd, part, num_parts, part_size); - if (is_open() && (omode != OPEN_READ_ONLY) && - (free_space_errno == 0 || num_parts == part)) { - update_free_space_dev(this); - } }