VirtualBox

Opened 13 years ago

Closed 12 years ago

#9197 closed defect (duplicate)

Guest still thinks directory exists when it was deleted on the host — at Version 7

Reported by: yurivict Owned by:
Component: shared folders Version: VirtualBox 4.0.10
Keywords: Cc:
Guest type: Linux Host type: other

Description (last modified by Frank Mehnert)

I created the directory within the shared folder in the guest. Then I deleted it on the host directly. After this an attempt to create the directory again from the guest fails with the error code: File exists. But 'ls -a' doesn't show the directory in the guest.

My host is FreeBSD (I know it's not officially supported), but I saw this on Linux host before too. Guest is Ubuntu 64bit.

Change History (7)

comment:1 by Frank Mehnert, 13 years ago

Component: othershared folders
Guest type: otherLinux

comment:2 by DavidN, 13 years ago

This is confirmed on a Windows 7 64-bit host with Fedora 15 64-bit guest. VirtualBox 4.1.0.

If you create a directory in the shared folder from the guest and delete it on the host, attempts to recreate the directory from the guest will fail until the shared folder is unmounted and remounted.

comment:3 by Gabriel Petrovay, 12 years ago

Same behavior: Host: VB 4.0.12, Win 7 32-bit Guest: Ununtu Server 11.10

And I get:

gabriel@Cluj:~$ ll tmp ls: cannot access tmp: No such file or directory gabriel@Cluj:~$ mkdir tmp mkdir: cannot create directory `tmp': File exists

comment:4 by hrehf, 12 years ago

Same behavior:

  • Host: 4.1.8 on Win 7 x64
  • Client: Archlinux

Seems to occur a lot more after the 4.1.8 update; only a client reboot resets it to a usable state. Additionally, in the last week I noticed I sometimes cannot delete certain directories from the guest: rm -rf reports "foo is a directory", rm -r reports something else (but I cannot reproduce it right now). Lately also happens with files created by the client.

Also, time sync issues with the filesystem now require two fsck runs, while they were fixed after one before.

The Shared folder is on a raid.

in reply to:  4 comment:5 by hrehf, 12 years ago

Replying to hrehf:

  • rm -rf reports "foo is a directory"
  • rm -r reports "foo: no such file or directory"

Definitely happens with folder created from within the client

comment:6 by manski, 12 years ago

For now, you can "solve" this problem by restarting the guest additions:

/etc/init.d/virtualbox-guest-utils restart

comment:7 by Frank Mehnert, 12 years ago

Description: modified (diff)
Resolution: duplicate
Status: newclosed

I think this is a duplicate of #9887. This affects only guest Linux kernels >= 2.6.38.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use