void
CopyToDriveJob::run ()
{
- LOG_DISK("Sending write request to disk writer for %1 %2", _dcp.string(), _drive.device_for_write());
- if (!_nanomsg.send(String::compose(DISK_WRITER_WRITE "\n%1\n%2\n", _dcp.string(), _drive.device_for_write()), 2000)) {
+ LOG_DISK("Sending write request to disk writer for %1 %2", _dcp.string(), _drive.device());
+ if (!_nanomsg.send(String::compose(DISK_WRITER_WRITE "\n%1\n%2\n", _dcp.string(), _drive.device()), 2000)) {
throw CommunicationFailedError ();
}
bool on_drive_list = false;
bool mounted = false;
for (auto const& i: Drive::get()) {
- if (i.device_for_write() == *device) {
+ if (i.device() == *device) {
on_drive_list = true;
mounted = i.mounted();
}