return EROFS if write/truncate is not supported by device
return EROFS if write/truncate is not supported by device

whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux