[haiku-bugs] [Haiku] #15730: Allow delete "bad data" files

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 20 Feb 2020 04:02:18 -0000

#15730: Allow delete "bad data" files
------------------------------+------------------------------
 Reporter:  X512              |        Owner:  axeld
     Type:  bug               |       Status:  new
 Priority:  normal            |    Milestone:  Unscheduled
Component:  File Systems/BFS  |      Version:  R1/Development
 Keywords:                    |   Blocked By:
 Blocking:                    |  Has a Patch:  0
 Platform:  All               |
------------------------------+------------------------------
 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.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15730>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: