X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=restore-src%2Famrestore.c;h=8fc9c55c1810bdc5a2a8469a6efd5642c5f0dab2;hb=96f35b20267e8b1a1c846d476f27fcd330e0b018;hp=aef4bafda198f8936f54f31ce99c05ec842394d5;hpb=d74dc4d908fcbc1a4ef474edaf51e61ec90eab6b;p=debian%2Famanda diff --git a/restore-src/amrestore.c b/restore-src/amrestore.c index aef4baf..8fc9c55 100644 --- a/restore-src/amrestore.c +++ b/restore-src/amrestore.c @@ -110,6 +110,11 @@ static void handle_tape_restore(char * device_name, rst_flags_t * flags, error("Could not open device %s: %s.\n", device_name, device_error(device)); } + if (!device_configure(device, TRUE)) { + error("Error configuring device: %s", + device_error_or_status(device)); + } + if (!set_restore_device_read_buffer_size(device, flags)) { error("Error setting read block size: %s.\n", device_error_or_status(device)); }