[haiku-bugs] Re: [Haiku] #3690: KDL when copying data to a FAT USB flash drive

  • From: "romain" <trac@xxxxxxxxxxxx>
  • Date: Mon, 08 Feb 2010 21:29:30 -0000

#3690: KDL when copying data to a FAT USB flash drive
------------------------------+---------------------------------------------
 Reporter:  haiqu             |       Owner:  axeld        
     Type:  bug               |      Status:  new          
 Priority:  critical          |   Milestone:  R1/alpha2    
Component:  File Systems/FAT  |     Version:  R1/pre-alpha1
 Keywords:                    |   Blockedby:               
 Platform:  x86               |    Blocking:  4066, 5362   
------------------------------+---------------------------------------------

Comment(by romain):

 "dosfs_dir_flags.diff" fixes a bad assignment in the get_vnode hook. Since
 the flags where not filled, they are randomly set to
 B_VNODE_PUBLISH_REMOVED, i.e 1. This makes the vfs call the remove_vnode
 hook, which removes the node fat entries. Later access to these nodes
 trigger errors like the ones of ticket #5362.

 Concerning the fat mirror patch, the buffer increment code was added when
 porting the BeOS code to Haiku, and this can only be a mistake.

 I will do more tests, but with these two patches, and #5340 I had no crash
 until now; and Windows checkdisk is happy with my usb stick after 70MB of
 file copy.

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

Other related posts: