Yes, if the DIRECTORY or TODIRECTORY value in a FS COPY request contains 
spaces, you should use the STAFUtil.wrapData() function to put them in a 
colonLengthColon format.  For example:

  <script>
    from com.ibm.staf import STAFUtil
  </script>

<stafcmd name="'Perform directory copy via STAF service'">
  <location>source_ip</location>
  <service>'FS'</service>
  <request>
    'COPY DIRECTORY %s TODIRECTORY %s TOMACHINE %s' % \
    (STAFUtil.wrapData(source_path), STAFUtil.wrapData(dest_path), 
dest_ip)
  </request>
</stafcmd>

However, the problem is occurring because the file being copied is >= 4G. 
Currently, STAF only handles copying files < 4G.  We have a feature open 
to provide support for copying files > 4G.  We should make it clearer in 
the STAF FAQ that copying a file >= 4G is not currently supported on any 
machine (64-bit machines as well as 32-bit machines).

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347




"Ahmed Mostafa" <[EMAIL PROTECTED]> 
10/14/2008 10:24 AM

To
"Devvan Stokes" <[EMAIL PROTECTED]>
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users] FS service file size limits






According to my experience, the FSExt service requires that file/directory 
name be in CLC (Colon Length Colon) format (if it contained spaces).

2008/10/13 Devvan Stokes <[EMAIL PROTECTED]>
Here's the exact XML:

    <stafcmd name="'Perform directory copy via STAF service'">
      <location>source_ip</location>
      <service>'FS'</service>
      <request>
        'COPY DIRECTORY %s TODIRECTORY %s TOMACHINE %s' % 
(source_path,dest_path, dest_ip)
      </request>
    </stafcmd>

In my case, the source and destination machines are the same - just a 
local file copy (on Wink2k3 Server64).

The RC value logs as: 51
The STAFResult value logs as: [{'name': <full path of the directory that 
I'm copying>, 'staf-map-class-name': 'STAF/Service/FS/ErrorInfo', 'osRC': 
None, 'rc': '18'}]

51 indicates a copy error, and 18 indicates a read error.  I should also 
say that the directory and file in question are unremarkable, having only 
basic alpha-numeric ASCII characters and spaces in their names. 

Thank you.


-----Original Message-----
From: Sharon Lucas [mailto:[EMAIL PROTECTED]
Sent: Mon 10/13/2008 1:24 PM
To: Devvan Stokes
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] FS service file size limits

Also, what is the exact FS COPY request that you are specifying?  In
particular, are you copying a file to or from another machine?  If so,
what operating system is on the other machine and is it the location of
the "from" file or the "to" file?

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347

----- Forwarded by Sharon Lucas/Austin/IBM on 10/13/2008 12:23 PM -----

Sharon Lucas/Austin/IBM
10/13/2008 12:21 PM

To
"Devvan Stokes" <[EMAIL PROTECTED]>
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users] FS service file size limits





What is the RC and error message that you get when the FS COPY request for
a 8GB sized file fails?

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347




"Devvan Stokes" <[EMAIL PROTECTED]>
10/13/2008 11:58 AM

To
<staf-users@lists.sourceforge.net>
cc

Subject
[staf-users] FS service file size limits






I believe I'm running into an issue of a file being too large for the FS
service to copy.  Section 3.5.3. of the FAQ talks about the 4GB limit for
32-bit version of STAF, but I'm running the 64-bit version, and a file
copy of 8GB consistently fails.  I uninstalled STAF and reinstalled
(STAF331-setup-winamd64.exe) on Windows Server 2003 64b, just to be sure I
had the right version, but it still failed.

Any hints?

Thanks.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
Build the coolest Linux based applications with Moblin SDK & win great 
prizes
Grand prize is a trip for two to an Open Source event anywhere in the 
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users




-- 
Ahmed Mostafa Abdel-Baky
Associate Software Engineer
DB2 NSE Support
Cairo Technology Development Center
IBM Egypt
Office: +202-35361486
Mobile: 0123919750
E-mail: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
Build the coolest Linux based applications with Moblin SDK & win great 
prizes
Grand prize is a trip for two to an Open Source event anywhere in the 
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to