#
bd02d81c |
|
30-Jun-2021 |
David Sebek <dasebek@gmail.com> |
Fix trim-related issues Fixes: * Use uint64 instead of off_t when handling offset and size of the trimmed range in the fs_trim_data structure * BlockAllocator::Trim: Correct the size of a buffer * ram_disk, mmc: Do not trim past device capacity Improvements: * BlockAllocator::Trim: Because the received offset and size are ignored by BFS (the functionality is not implemented yet), return B_UNSUPPORTED if the range does not cover the whole partition * ram_disk, mmc: More accurate calculation of the number of trimmed bytes * devfs: Add a uint64 version of translate_partition_access() Change-Id: I24f4c08674f123ad33a5fef6e28996a4ada6ff0d Reviewed-on: https://review.haiku-os.org/c/haiku/+/4155 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
2028d638 |
|
17-Jan-2021 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
mmc_disk: implement B_TRIM_DEVICE Change-Id: Ib08a1e196441f35550fe221b912332b4803a04b4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3641 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
14652ec4 |
|
22-Jan-2014 |
Stephan Aßmus <superstippi@gmx.de> |
trim support code: The passed in MemoryDeleter was never used. When a buffer has to be allocated, I guess the intention was to assign the MemoryDeleter to it, so that it would later be freed. CID 1130505
|
#
547cd462 |
|
02-Nov-2013 |
Axel Dörfler <axeld@pinc-software.de> |
trim: Added is_called_via_syscall() function. * And use it in get_trim_data_from_user(), formerly known as copy_*(). * This fixes differentiating between user and kernel buffers.
|
#
99086aa3 |
|
14-Aug-2013 |
Axel Dörfler <axeld@pinc-software.de> |
trim: Target SCSI UNMAP command instead of WRITE SAME. * The UNMAP command is theoretically much faster, as it can get many block ranges instead of just a single range. * Furthermore, the ATA TRIM command resembles it much better. * Therefore, fs_trim_data now gets an array of ranges, and we use SCSI UNMAP to trim. * Updated BFS code to collect array ranges to fully support the new fs_trim_data possibilities.
|
#
14652ec4bbec3795d791bb50ba1a47f802f7aee8 |
|
22-Jan-2014 |
Stephan Aßmus <superstippi@gmx.de> |
trim support code: The passed in MemoryDeleter was never used. When a buffer has to be allocated, I guess the intention was to assign the MemoryDeleter to it, so that it would later be freed. CID 1130505
|
#
547cd462f843df15db02ed0dd7a35528221b66bc |
|
02-Nov-2013 |
Axel Dörfler <axeld@pinc-software.de> |
trim: Added is_called_via_syscall() function. * And use it in get_trim_data_from_user(), formerly known as copy_*(). * This fixes differentiating between user and kernel buffers.
|
#
99086aa32333be5792b0f059ccbbe3c90be05ea6 |
|
14-Aug-2013 |
Axel Dörfler <axeld@pinc-software.de> |
trim: Target SCSI UNMAP command instead of WRITE SAME. * The UNMAP command is theoretically much faster, as it can get many block ranges instead of just a single range. * Furthermore, the ATA TRIM command resembles it much better. * Therefore, fs_trim_data now gets an array of ranges, and we use SCSI UNMAP to trim. * Updated BFS code to collect array ranges to fully support the new fs_trim_data possibilities.
|