Tracker item #2531303, was opened at 2009-01-23 19:02
Message generated for change (Comment added) made by amitgud
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2531303&group_id=204462
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: kernel modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Armando Di Cianno (fafhrdx)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot create valid symlinks within shared folder.
Initial Comment:
* Gentoo Linux
* Works: gentoo-sources-2.6.25-r7 + open-vm-tools-0.0.20080808.109361-r1
* Fails: gentoo-sources-2.6.25-r7 with open-vm-tools-0.0.20081223.137496;
gentoo-sources-2.6.27-r8 with open-vm-tools-0.0.20081223.137496 or
open-vm-tools-0.0.20090121.142982 (not in gentoo portage yet, i built).
* Host: VMWare Fusion 2.0.1
* I have a a shared folder mount in the guest at /mnt/hgfs
* I have this shared folder symlinked in my home directory:
$ cd ; ls -lGg repos
lrwxrwxrwx 1 18 Jul 10 2008 repos -> Projects/obt/repos
$ cd ; ls -lGg Projects
lrwxrwxrwx 1 18 Jun 17 2008 Projects -> /mnt/hgfs/Projects
* I can create system symlinks:
$ cd /tmp ; touch foo ; ln -s foo fum; ls -lGg fum
lrwxrwxrwx 1 3 Jan 23 10:56 fum -> foo
* I cannot create symlinks that exist on with the shared folder, using relative
or full paths:
$ cd ~/repos ; touch foo ; ln -snf foo fum; ls -lGg fum
lrwxr-xr-x 1 3 Jan 23 10:58 fum -> foo///////?????(??????//////////////
* Every so often, the broken link will contain other bits from the directory
listing or memory in general; example from my recollection:
$ ls -lGg exception_notification_plugin
lrwxr-xr-x 1 obt users 63 Jan 23 11:00 exception_notification ->
/home/obt/repos/sesame/sv/vendor/plugins/exception_notification////?/otifica?(/////////????//////////////////////
* Because of this issue, I can neither upgrade the kernel, nor open vm tools of
the guest OS
----------------------------------------------------------------------
Comment By: Amit Gud (amitgud)
Date: 2009-01-24 03:42
Message:
Thanks for reporting.
Could you try the patch below and see if the problem goes away?
AG
--
May the source be with you.
--- inode.c //depot/bora-vmsoft/vmcore-main/hgfs/linux/inode.c#30
+++ inode.c 09-01-23 16:19:13
@@ -1615,8 +1615,8 @@ HgfsPackSymlinkCreateRequest(struct dent
/* Convert target name to CPName-lite format. */
CPNameLite_ConvertTo(targetName, targetNameBytes - 1, '/');
- *targetNameLength = result;
- req->payloadSize += result;
+ *targetNameLength = targetNameBytes - 1;
+ req->payloadSize += targetNameBytes - 1;
return 0;
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2531303&group_id=204462
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
open-vm-tools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel