scsi_disk: Disable FSTRIM.

It is known to destroy data on such devices (see #10336). But it seems to
work on ramdisk devices, so only disable it here, not for everything.
This commit is contained in:
Augustin Cavalier 2018-07-23 20:59:05 -04:00
parent 9f9afda5ce
commit f2dac2f1f1
1 changed files with 2 additions and 0 deletions

View File

@ -413,6 +413,7 @@ das_ioctl(void* cookie, uint32 op, void* buffer, size_t length)
case B_FLUSH_DRIVE_CACHE:
return synchronize_cache(info);
#if 0
case B_TRIM_DEVICE:
{
fs_trim_data* trimData;
@ -428,6 +429,7 @@ das_ioctl(void* cookie, uint32 op, void* buffer, size_t length)
return copy_trim_data_to_user(buffer, trimData);
}
#endif
default:
return sSCSIPeripheral->ioctl(handle->scsi_periph_handle, op,