Perforce and how to create symbolic links on samba share in Windows

2

I am using Perforce and have Workspace of project under Linux. The project contains many symbolic links. I have no problems with Perforce and the symbolic links as long as I work on Linux. However, if I mount the project via Samba to my Windows computer and if I create a Workspace to this Samba share, then the symbolic links break down. It looks like Perforce cannot read and write the symbolic links on my Samba share correctly.

Is there solution or workaround to force Perforce to create Linux compatible symbolic links on a Samba share?

stefangachter

Posted 2010-11-15T16:10:12.493

Reputation: 121

Which Windows version, and is Linux the server or the client? – user1686 – 2010-11-15T19:08:41.230

I am using Windowx XP SP3. Linux is the client, ie. I access Linux from Windows. – stefangachter – 2010-11-16T13:39:26.533

Answers

1

Windows does not have native symlink support until Vista/7.


If you are connecting to a Windows share from Linux, try adding the sfu option to the mount command:

mount -t cifs -o sfu,(other options) //server/share /mountpoint

If you are running Perforce on Windows and connecting to a share on Linux, and your Windows version does not support symlinks, you cannot use them. (There's a slight chance Services for Unix can help, but I haven't used it much.)

user1686

Posted 2010-11-15T16:10:12.493

Reputation: 283 655

Thanks for the comment. I am working under Windows XP and access a Linux server via Samba. So, there seems no solution so far. – stefangachter – 2010-11-16T06:33:09.960

@stefan: In case of XP, my answer above applies: Windows XP does not have symlink support. – user1686 – 2010-11-16T14:53:13.537