[haiku-bugs] Re: [Haiku] #6346: KDL after unmounting an image file on a partition that is mounted read-only

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 20 Jul 2010 08:19:05 -0000

#6346: KDL after unmounting an image file on a partition that is mounted 
read-only
----------------------------+-----------------------------------------------
  Reporter:  taos           |         Owner:  axeld         
      Type:  bug            |        Status:  new           
  Priority:  normal         |     Milestone:  R1            
 Component:  System/Kernel  |       Version:  R1/Development
Resolution:                 |      Keywords:                
Blocked By:                 |   Has a Patch:  0             
  Platform:  All            |      Blocking:                
----------------------------+-----------------------------------------------

Comment (by bonefish):

 Replying to [comment:4 axeld]:
 > Why can the second file system open the image file read/write in the
 first place?

 Apparently because `dosfs_open()` [http://dev.haiku-
 os.org/browser/haiku/trunk/src/add-
 ons/kernel/file_systems/fat/file.c?rev=33670#L290 does things
 incorrectly].

 > This is what BFS checks for, and it will fall back to read-only if it
 couldn't open it read/write.

 Ah, indeed, I first missed that. If every file system with write support
 did that (FAT doesn't for instance), that would work well enough.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6346#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: