#9957 NORM 1.5-fir: ofw $rename word will create identically named files

Zarro Boogs per Child bugtracker at laptop.org
Thu Jan 7 17:06:07 EST 2010


#9957: ofw $rename word will create identically named files
-------------------------------------------+--------------------------------
           Reporter:  pgf                  |       Owner:  wmb at firmworks.com                 
               Type:  defect               |      Status:  assigned                          
           Priority:  normal               |   Milestone:  1.5-firmware                      
          Component:  ofw - open firmware  |     Version:  Development source as of this date
         Resolution:                       |    Keywords:                                    
        Next_action:  add to build         |    Verified:  0                                 
Deployment_affected:                       |   Blockedby:                                    
           Blocking:                       |  
-------------------------------------------+--------------------------------

Comment(by pgf):

 testing with svn 1648, rename is now failing in a different way.  however,
 i'll retest on a clean filesystem, since this one (the same one with the
 duplicate entries from the original report is perhaps suspect.

 {{{
 ok dir int:\runin
 ext2-file-system
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     10206  2010-01-05 17:15:55  bar
 ----rw-rw-rw-     10206  2010-01-05 18:17:41  bar
 ----rw-rw-rw-     11845  2010-01-07 19:55:10  final.fth.sav
 ok copy int:\runin\final.fth.sav int:\runin\foo
 ok dir int:\runin
 ext2-file-system
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     11845  2010-01-07 21:45:37  foo
 ----rw-rw-rw-     10206  2010-01-05 17:15:55  bar
 ----rw-rw-rw-     10206  2010-01-05 18:17:41  bar
 ----rw-rw-rw-     11845  2010-01-07 19:55:10  final.fth.sav
 ok rename int:\runin\foo int:\runin\blah
 }}}
 Note that there is no "blah" file
 {{{
 ok dir int:\runin
 ext2-file-system
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     10206  2010-01-05 17:15:55  bar
 ----rw-rw-rw-     10206  2010-01-05 18:17:41  bar
 ----rw-rw-rw-     11845  2010-01-07 19:55:10  final.fth.sav
 ok copy int:\runin\final.fth.sav int:\runin\foo
 ok copy int:\runin\final.fth.sav int:\runin\foo
 Overwrite int:\runin\foo? [y/n]? y
 ok dir int:\runin
 ext2-file-system
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     11845  2010-01-07 21:46:34  foo
 ----rw-rw-rw-     10206  2010-01-05 17:15:55  bar
 ----rw-rw-rw-     10206  2010-01-05 18:17:41  bar
 ----rw-rw-rw-     11845  2010-01-07 19:55:10  final.fth.sav
 ok rename int:\runin\foo int:\runin\blah
 }}}
 There is still no "blah" file
 {{{
 ok dir int:\runin
 ext2-file-system
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     10206  2010-01-05 17:15:55  bar
 ----rw-rw-rw-     10206  2010-01-05 18:17:41  bar
 ----rw-rw-rw-     11845  2010-01-07 19:55:10  final.fth.sav
 ok del int:\runin\bar
 Page Fault
 }}}
 Perhaps not surprising, given the double entries.
 {{{
 ok mkdir int:\somedir
 ok copy int:\runin\bar int:\somedir
 ok dir int:\somedir
 ext2-file-system
 ---drwxrwxrwx      1024  2010-01-07 21:47:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     10206  2010-01-07 21:47:50  bar
 ok copy int:\somedir\bar int:\somedir\foo
 ok dir int:\somedir
 ext2-file-system
 ---drwxrwxrwx      1024  2010-01-07 21:47:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     10206  2010-01-07 21:47:50  bar
 ----rw-rw-rw-     10206  2010-01-07 21:48:21  foo
 ok rename int:\somedir\foo int:\somedir\another_bar
 Can't rename file
 }}}
 Different symptom, still incorrect
 {{{
 ok dir int:\somedir
 ext2-file-system
 ---drwxrwxrwx      1024  2010-01-07 21:47:33  .
 ---drwxr-xr-x      1024  2009-12-17 18:33:33  ..
 ----rw-rw-rw-     10206  2010-01-07 21:47:50  bar
 ----rw-rw-rw-     10206  2010-01-07 21:48:21  foo
 ok rename int:\somedir\foo int:\somedir\a_bar
 Can't rename file
 ok
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/9957#comment:3>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list