Skip to content

Commit

Permalink
[iwm][fuji] set read_only prior to mount.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jan 18, 2025
1 parent cae48b8 commit 76b76fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/device/iwm/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,14 @@ uint8_t iwmFuji::iwm_ctrl_disk_image_mount() // SP CTRL command
// mediatype_t mt = MediaType::discover_mediatype(disk.filename);
// if (mt == mediatype_t::MEDIATYPE_PO)
// { // And now mount it
disk.disk_type = disk_dev->mount(disk.fileh, disk.filename, disk.disk_size);

if (options == DISK_ACCESS_MODE_WRITE)
{
disk_dev->readonly = false;
}

disk.disk_type = disk_dev->mount(disk.fileh, disk.filename, disk.disk_size);

return SP_ERR_NOERROR;
}

Expand Down

0 comments on commit 76b76fa

Please sign in to comment.