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:
parent
9f9afda5ce
commit
f2dac2f1f1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user