bjorn3
a1b0feaadb
storage: Notify readiness as soon as the disk scheme has been created
...
This prevents boot hangs when the disk driver hangs between creating the
disk scheme and being fully initialized, while still preventing race
conditions.
2025-05-20 22:03:01 +02:00
4lDO2
3ba8c99915
Fix rustfmt CI and make bcm2835-sdhcid compile.
2025-03-30 16:45:55 +02:00
bjorn3
865ca86666
storage: Mostly unify disk scheme implementations
...
lived and usbscsid still keep their old scheme implementations.
2025-03-08 13:06:31 +01:00
bjorn3
60a141b51c
storage: Move most partition handling into DiskWrapper
2025-03-07 22:49:22 +01:00
bjorn3
b1dcda4cf7
storage/nvmed: Use DiskWrapper
2025-03-07 22:35:01 +01:00
bjorn3
9d27fad3d5
storage/driver-block: Make DiskWrapper generic over the disk type
...
This allows it to contain non-'static disks.
2025-03-07 22:22:21 +01:00
bjorn3
dfe23b0683
storage/driver-block: Make Disk::block_length infallible
...
It should be read when creating the struct implementing Disk and every
disk needs to have some block length.
2025-03-07 21:35:49 +01:00
bjorn3
aacf09cef4
storage/driver-block: Remove id method from Disk trait
2025-03-07 20:42:41 +01:00
bjorn3
581d9eea33
Replace a whole bunch more repr(packed) with repr(C, packed)
2025-02-22 16:19:25 +01:00
bjorn3
b1743d800c
Remove all dup impls that only accept empty paths
...
Those dups are handled by the kernel already by creating a new reference
to the underlying file descriptor.
2024-12-27 15:13:42 +01:00
bjorn3
8eabb75524
Update redox-scheme to 0.3.0
2024-12-26 15:50:30 +01:00
Andrey Turkin
63b1d2cf8a
bcm2835-sdhcid: remap mmio range as instructed by DTB
2024-12-18 21:16:33 +03:00
Andrey Turkin
09b5033fbd
Wholesale cargo fmt to get CI back to green
2024-10-17 20:07:05 +03:00
Kamil Koczurek
d2c82add9d
Move Io/Pio/Mmio from redox_syscall to common
...
* Fix Mmio repr from transparent to packed.
* Rename Mmio::from to Mmio::new.
* Remove dead imports around affected code.
* Minor formatting.
2024-09-30 13:01:36 +02:00
Ivan Tan
897cf31893
migrate bcm2835-sdhcid to v2 scheme protocol
2024-09-29 09:36:36 +00:00
Ivan Tan
acaa8e490c
bcm2835-sdhcid: update redox_syscall version
2024-03-30 22:29:25 +08:00
Jacob Lorentzon
ff956fd3bb
Switch to libredox where applicable (fixed)
2024-03-18 22:09:25 +00:00
Jeremy Soller
98078650f8
Revert "Switch to libredox where applicable."
...
This reverts commit 2e7dbf1cc1 .
2024-03-18 15:00:52 -06:00
4lDO2
2e7dbf1cc1
Switch to libredox where applicable.
2024-03-18 19:23:05 +01:00
bjorn3
20bc47f228
Move DiskWrapper into a new driver-block crate
...
Also merge block-io-wrapper into this crate.
2024-03-06 21:09:38 +01:00
bjorn3
c75b560def
Move all storage drivers to storage/
2024-02-29 15:41:05 +01:00