Opened 5 years ago

Last modified 5 years ago

#15730 closed bug

Allow delete "bad data" files — at Initial Version

Reported by: X512 Owned by: axeld
Priority: normal Milestone: R1/beta2
Component: File Systems/BFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is hrev53888.

Because of file system corruption "bad data" files appear sometimes. Any attempts to delete such files fails. It should be possible to delete "bad data" files.

Following contents are written to syslog when attempting to delete "bad data" file with rm command:

KERN: bfs: InitCheck:325: Bad data
KERN: bfs: KERN: inode at 2881058 is already deleted!
KERN: bfs: InitCheck:325: Bad data
KERN: bfs: KERN: inode at 2881058 is already deleted!

Problem is likely here: https://xref.landonf.org/source/xref/haiku/src/add-ons/kernel/file_systems/bfs/Inode.cpp#2507. Deletion is refused if opening inode fails. BFS driver should delete file entry in directory even if inode ca't be opened.

Change History (0)

Note: See TracTickets for help on using tickets.