#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:43:10 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):
tried creating the ext2 filesystem on a USB stick, for ease of testing.
it gets "Flushbuf error", and doesn't complete its operations (see the
result of copying a one-byte "foo" to "bar", below. will try external sd
next.
{{{
ok dir u:
ext2-file-system
---drwxr-xr-x 4096 2010-01-07 22:36:18 .
---drwxr-xr-x 4096 2010-01-07 22:36:18 ..
---drwx------ 16384 2010-01-07 22:36:03 lost+found
---drwxr-xr-x 4096 2010-01-07 22:36:37 somedir
ok dir u:\somedir
ext2-file-system
---drwxr-xr-x 4096 2010-01-07 22:36:37 .
---drwxr-xr-x 4096 2010-01-07 22:36:18 ..
----rw-rw-r-- 1 2010-01-07 22:36:37 foo
ok copy u:\somedir\foo u:\somedir\bar
Flushbuf error
ok dir u:\somedir
ext2-file-system
---drwxr-xr-x 4096 2010-01-07 22:36:37 .
---drwxr-xr-x 4096 2010-01-07 22:36:18 ..
----rw-rw-r-- 1 2010-01-07 22:36:37 foo
----rw-rw-rw- 0 2010-01-07 22:37:12 bar
ok dev /ext2-file-system debug $hardlink dend
Stepper keys: <space> Down Up Continue Forth Go Help ? See $tring Quit
ok rename u:\somedir\foo u:\somedir\another_bar
: $hardlink ( ff9ce399 c ff9ce399 c ff9ce2a4 b )
2dup ( ff9ce399 c ff9ce399 c ff9ce2a4 b ff9ce2a4 b )
$find-file ( ff9ce399 c ff9ce399 c ff9ce2a4 b ffffffff )
0= ( ff9ce399 c ff9ce399 c ff9ce2a4 b 0 )
if ( ff9ce399 c ff9ce399 c ff9ce2a4 b )
dirent-vars ( ff9ce399 c ff9ce399 c ff9ce2a4 b 1000 1000 0
1dd1 )
2>r ( ff9ce399 c ff9ce399 c ff9ce2a4 b 1000 1000 )
2>r ( ff9ce399 c ff9ce399 c ff9ce2a4 b )
2swap ( ff9ce399 c ff9ce2a4 b ff9ce399 c )
$find-file $ \somedir\foo
( ff9ce399 c ff9ce2a4 b ff9ce399 c )
$find-file ( ff9ce399 c ff9ce2a4 b 0 )
if ( ff9ce399 c ff9ce2a4 b )
wf-type ( ff9ce399 c ff9ce2a4 b 1 )
dir-type ( ff9ce399 c ff9ce2a4 b 1 2 )
= ( ff9ce399 c ff9ce2a4 b 0 )
if ( ff9ce399 c ff9ce2a4 b )
2r> ( ff9ce399 c ff9ce2a4 b 1000 1000 )
2r> ( ff9ce399 c ff9ce2a4 b 1000 1000 0 1dd1 )
restore-dirent ( ff9ce399 c ff9ce2a4 b )
wf-inum ( ff9ce399 c ff9ce2a4 b 1dd2 )
new-dirent ( ff9ce399 c 0 )
;
Flushbuf error
ok dir u:\somedir
ext2-file-system
---drwxr-xr-x 4096 2010-01-07 22:36:37 .
---drwxr-xr-x 4096 2010-01-07 22:36:18 ..
----rw-rw-r-- 1 2010-01-07 22:36:37 foo
----rw-rw-rw- 0 2010-01-07 22:37:12 bar
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/9957#comment:6>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list