Skip to content

Commit

Permalink
Merge pull request #201 from erichelgeson/eric/fragmented
Browse files Browse the repository at this point in the history
Warn user if file is fragmented
  • Loading branch information
erichelgeson authored Dec 3, 2022
2 parents f4d7cdf + 7ee2c44 commit 139a510
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/BlueSCSI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ bool hddimageOpen(SCSI_DEVICE *dev, FsFile *file,int id,int lun,int blocksize)
LOG_FILE.println(" - file is 0 bytes, can not use.");
goto failed;
}
if(!dev->m_file->isContiguous())
{
LOG_FILE.println(" - file is fragmented, see https://github.com/erichelgeson/BlueSCSI/wiki/Image-File-Fragmentation");
}

if(dev->m_type == SCSI_DEVICE_OPTICAL) {
LOG_FILE.print(" CDROM");
Expand Down

0 comments on commit 139a510

Please sign in to comment.