#169 rename bug in cofs

v0.8.x (devel)
closed-fixed
Henry N.
5
2010-01-16
2009-12-10
Anonymous
No

We make a directory "test", and put a file ".test" and a dir "csrc" in here.
when we exec command below, we will got a error:
mv .test csrc

Discussion

  • Henry N.

    Henry N. - 2009-12-10

    Detailed steps:

    mkdir test
    cd test
    touch .test
    mkdir csrc
    mv .test csrc

    Linux output:
    mv: cannot move `.test' to a subdirectory of itself, `csrc/.test'

    Debug output:
    <log module="colinux-driver" file="src/colinux/kernel/filesystem.c" timestamp="00000001.3690656475" local_index="1201" facility="0" function="flat_mode_inode
    _rename" line="721" level="10" driver_index="1221">
    <string>Parent can not rename itself (test,csrc)</string>
    </log>

     
  • Henry N.

    Henry N. - 2009-12-10
    • status: open --> open-accepted
     
  • Henry N.

    Henry N. - 2009-12-18

    Move file to subdirectory was blocked by badly workaround in SVN revision 1161.
    Revert it, and implement a better check to prevent from moving parent directory to subdirectory.
    (testcase: "mkdir /cofs/testdir ; mv /cofs/testdir /cofs/TESTDIR/somedir")

    Is fixed in SVN revision r1323 now. (see todays autobuild)

     
  • Henry N.

    Henry N. - 2009-12-18
    • status: open-accepted --> open-fixed
     
  • Henry N.

    Henry N. - 2010-01-16
    • assigned_to: nobody --> henryn
    • status: open-fixed --> closed-fixed
     
  • Henry N.

    Henry N. - 2010-01-16

    Fixed in SVN revision r1332 for stable now. (see Snapshots)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks