#4184 BLOC First D: JFFS2 Dirent Anomaly

Zarro Boogs per Child bugtracker at laptop.org
Tue Oct 23 19:58:07 EDT 2007


#4184: JFFS2 Dirent Anomaly
--------------------------------+-------------------------------------------
  Reporter:  wmb at firmworks.com  |       Owner:  krstic                
      Type:  defect             |      Status:  new                   
  Priority:  blocker            |   Milestone:  First Deployment, V1.0
 Component:  kernel             |     Version:                        
Resolution:                     |    Keywords:                        
  Verified:  0                  |  
--------------------------------+-------------------------------------------

Comment(by gnu):

 Modprobe is opening the files read/write so it can use fcntl(, F_SETLKW)
 to avoid race conditions when two modprobes run simultaneously.  The
 --force options don't appear to need to open the file read/write; they
 modify its image in malloc'd or private mmap'd memory.  I wonder if
 something about the fcntl operation is giving the file system fits?

 I have a patch that replaces fcntl with flock(, LOCK_EX), which doesn't
 require that the file is open read/write, but I'm still testing it.

-- 
Ticket URL: <https://dev.laptop.org/ticket/4184#comment:23>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list