Opened 14 years ago
Closed 4 weeks ago
#6359 closed bug (fixed)
Kernel panic when deleting file on a write protected usb key
Reported by: | jackburton | Owned by: | mmlr |
---|---|---|---|
Priority: | critical | Milestone: | R1 |
Component: | Drivers/Disk/USB | Version: | R1/alpha2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
You need a usb key with a hardware write protect switch. Steps to reproduce:
- Lock the key with the hardware switch.
- Insert it in your haiku pc.
- Mount it read-write
- Try to delete some files
Panicks with "could not write back block xxx"
Actually could well be another symptom of ticket #6346
Change History (5)
comment:1 by , 14 years ago
comment:2 by , 6 years ago
Component: | Drivers/USB → Drivers/Disk/USB |
---|
comment:3 by , 6 years ago
usb_disk's B_GET_GEOMETRY properly sets the read_only flag. So is this still an issue? Can someone retest? I don't know if I have any USB sticks with a write lock around here...
comment:4 by , 4 weeks ago
Write-protected USB drives will no longer allow mounting read-write. I tested this with an old Windows 10 retail USB, which are always write-protected.
comment:5 by , 4 weeks ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Well, then let's consider this fixed. Thanks for testing!
Note:
See TracTickets
for help on using tickets.
Assuming usb_disk is the underlying driver, usb_disk_open() doesn't have any handling for the open mode (
flags
). I don't think I've seen any driver that does, though.