[SOLVED] Invalid Argument - copying files from Win7 Share through gvfs to 6.4 VM

Issues related to applications and software problems
Post Reply
KristopherKane
Posts: 19
Joined: 2007/08/01 03:09:55
Location: Fuquay Varina, NC

[SOLVED] Invalid Argument - copying files from Win7 Share th

Post by KristopherKane » 2013/07/25 14:26:13

Hello,

I have a newly baselined Win7 Ultimate host and am running 6.4 instance in VMware Workstation. Previously, I had a Mac Pro, running Win7 with 6.4 in the same VM config.
I have software that runs in the 6.4 VM and reads files via gvfs to a share on the Windows host. Initially, the read from the software didn't work so I simply tried to copy the files from host to VM via gvfs. Under the new host, this results in a 'Invalid Argument' popup when copying from Nautilus and when using cp.
Scientific Linux - posting here because I know the community
SElinux is disabled
FW is disabled
kernel: 2.6.32-358.el6.x86_64
samba-client-3.6.9-151.el6.x86_64
gvfs-1.4.3-15.el6.x86_64
gvfs-fuse-1.4.3-15.el6.x86_64

Significant results from strace of cp:
write(2, "cannot open ` f"..., 42cannot open `` for reading) = 42
...
write(2, ": Invalid argument", 18: Invalid Argument) = 18

In Windows, the file is available, the user access is 'full control' and the file attributes are: AI
The problem is not isolated to this share. I can create a share from any part of the Windows filesystem and the problem persists.
I can write to the host share via gvfs.

I was told that the machine wasn't built from the ground up but some form of imaging was used that went from Mac -> new machine. They are building a new 'ground up' image but not sure that it is the real problem.

Any ideas?

KristopherKane
Posts: 19
Joined: 2007/08/01 03:09:55
Location: Fuquay Varina, NC

[SOLVED] Re: Invalid Argument - copying files from Win7 Share through gvfs to 6.4 VM

Post by KristopherKane » 2013/08/13 13:36:43

So, finally figured it out.

The following link references two MS Windows reg keys that need to be changed:

http://gerardnico.com/wiki/linux/samba_mount_windows_share

An exert:

Set the following registry key to ’1′:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

Set the following registry key to ’3′:
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

Restart the “Server” Service

Post Reply