Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-21304

VirtIOFS: symlink target is deleted instead of symlink itself

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.0
    • None
    • virtio-win
    • rhel-sst-virtualization-windows
    • ssg_virtualization
    • 8
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      Create symlink from host:

      {{$ touch file.txt
      $ ln -s file.txt link.txt}}
      Then delete link.txt in explorer on guest. This results in file.txt is deleted instead of link.txt.

      Such a behavior is attributed to PathWalkthrough() which returns target file.

       
      The task description is only applicable for Explorer. But there are some other interesting situations:

      Executing erase /F deletes link (as it should be).

      Executing rm returns cannot remove: Input/Output error

              kkostiuk Konstantin Kostiuk
              kkostiuk Konstantin Kostiuk
              virt-maint virt-maint
              Xiaoling Gao Xiaoling Gao
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: