Opened 9 years ago

Last modified 3 months ago

#6359 new bug

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:
Has a Patch: no 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 (3)

comment:1 by bonefish, 9 years ago

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.

comment:2 by waddlesplash, 6 months ago

Component: Drivers/USBDrivers/Disk/USB

comment:3 by waddlesplash, 3 months 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...

Note: See TracTickets for help on using tickets.