A bug in virtualBox file share in Windows Hosts.
Posted: 23. Jan 2009, 04:45
VirtualBox version is 2.0.6, VirtualBox Host is WindowXP, Client is Linux, /src is a virtual share directory:
root [ /src/bdrr ]# make
make -C /lib/modules/2.6.26/build M=/src/bdrr modules
make[1]: Entering directory `/u/linux-2.6.26'
rm: cannot remove `/src/bdrr/.tmp_versions/*': Protocol error
make[1]: *** [crmodverdir] Error 1
make[1]: Leaving directory `/u/linux-2.6.26'
make: *** [default] Error 2
Then I contiue to test:
#rm /sharedir/*
Protocol error
# ls /src/bdrr/.tmp_versions/*
ls: cannot access /src/bdrr/.tmp_versions/*: Protocol error
So I think when a directolry is empty, the operator the directory such as:
rm <directory>/*
ls <directory>/*
This is my temportary solution:
cd /vboxsetup
/mnt/cdrom/VBoxLinuxAdditions.run --tar xvf
change the source files Error Code "EPROTO" to "ENOENT":
sed -i "s/\-EPROTO/\-ENOENT/g" `grep "\-EPROTO" -rl /u/vbox/module/vboxvfs/*.c`
Then reinstall vboxvfs module:
./install.sh vfs-module
root [ /src/bdrr ]# make
make -C /lib/modules/2.6.26/build M=/src/bdrr modules
make[1]: Entering directory `/u/linux-2.6.26'
rm: cannot remove `/src/bdrr/.tmp_versions/*': Protocol error
make[1]: *** [crmodverdir] Error 1
make[1]: Leaving directory `/u/linux-2.6.26'
make: *** [default] Error 2
Then I contiue to test:
#rm /sharedir/*
Protocol error
# ls /src/bdrr/.tmp_versions/*
ls: cannot access /src/bdrr/.tmp_versions/*: Protocol error
So I think when a directolry is empty, the operator the directory such as:
rm <directory>/*
ls <directory>/*
This is my temportary solution:
cd /vboxsetup
/mnt/cdrom/VBoxLinuxAdditions.run --tar xvf
change the source files Error Code "EPROTO" to "ENOENT":
sed -i "s/\-EPROTO/\-ENOENT/g" `grep "\-EPROTO" -rl /u/vbox/module/vboxvfs/*.c`
Then reinstall vboxvfs module:
./install.sh vfs-module