haiku/headers/os/drivers
David Sebek bd02d81c24 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>
2021-07-16 18:35:34 +00:00
..
bus PCI: add set_powerstate and get_powerstate hooks 2020-04-02 13:31:56 +00:00
pcmcia
tty tty: implement TCFLSH to flush buffers 2020-09-14 13:35:23 +00:00
usb usb hid: implement horizontal scrollwheel 2020-02-06 00:10:10 +00:00
ACPI.h acpi: add ACPI_DEVICE_UID_ITEM 2020-04-20 14:56:59 +00:00
bios.h
bus_manager.h
config_manager.h
cpufreq.h kernel: Propagate scheduler modes to cpu{freq, idle} modules 2013-12-17 23:26:37 +01:00
cpuidle.h kernel: Propagate scheduler modes to cpu{freq, idle} modules 2013-12-17 23:26:37 +01:00
device_manager.h device_manager: add find_child_node 2020-04-10 11:25:39 +00:00
disk_device_manager.h
dpc.h
driver_settings.h libroot: remove delete_driver_settings 2021-05-31 06:51:45 +00:00
Drivers.h Fix trim-related issues 2021-07-16 18:35:34 +00:00
fs_cache.h block_cache: Change signature of *_etc() functions 2020-06-20 18:10:03 +00:00
fs_interface.h vfs: functions to change a vnode busy status and ID 2019-02-19 18:44:43 +00:00
interrupt_controller.h
io_requests.h
ISA.h ISA: fix ram_address() to use phys_addr_t for completeness 2017-11-21 21:44:02 +01:00
isapnp.h
KernelExport.h POSIX: add dprintf 2020-10-04 19:34:40 +00:00
locked_pool.h
midi_driver.h
mime_table.h
module.h
PCI_x86.h PCI-x86: merge MSI-X unconfigure and disable with MSI. 2013-07-29 22:48:00 +02:00
PCI.h PCI: add subclasses for data acquisition 2020-03-23 15:38:52 +00:00
Select.h
USB2.h
USB3.h
USB_printer.h
USB_rle.h
USB_spec.h PVS V547: always false conditions 2019-07-17 01:48:25 +00:00
USB.h