The FS service's LIST DIRECTORY / QUERY ENTRY / GET ENTRY requests "chase 
down" the link and provide information about the source of the link (e.g. 
type, size, last modified timestamp) by design.  Note that if you're 
copying a file or directory to a remote machine using a FS COPY request, 
you want STAF to copy the file or directory that the link points to, and 
not copy a symbolic link to a file that doesn't exist on the remote 
machine.  Note that on a FS DELETE request, STAF detects if an entry is a 
symbolic link, and in that case, only deletes the link and does not chase 
down and delete what the link points to.

So, STAF does know if something is a symbolic link or not.  It's just not 
currently providing that information via the FS service.  We could add the 
ability for the FS service to show whether an entry is a symbolic link or 
not, if this was something you really need.

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




"Michael Werner" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
03/03/2008 04:39 AM

To
<[email protected]>
cc

Subject
[staf-users] Problem with symbolic Links and FS LIST DIRECTORY






Hi,
 
Unfortunately STAF does not behave just the way I thought it would from 
the Documentation:
 
FS LIST DIRECTORY
 
Does not recognize symbolic links.
 
What I did to reproduce the behaviour:
 
In the directory ~/tmp/fs_demo:
 
[sowso221]~/tmp/fs_demo: mkdir dir.3.1.24
[sowso221]~/tmp/fs_demo: ln -s dir.3.1.24/ dir
[sowso221]~/tmp/fs_demo: touch file.3.1.24
[sowso221]~/tmp/fs_demo: ln -s file.3.1.24 file
 
[sowso221]~/tmp/fs_demo: ls -l
total 8
lrwxrwxrwx   1 user   group          11 Mar  3 11:08 dir -> dir.3.1.24/
drwx------   2 user   group        4096 Mar  3 11:08 dir.3.1.24
lrwxrwxrwx   1 user   group          11 Mar  3 11:09 file -> file.3.1.24
-rw-------   1 user   group           0 Mar  3 11:08 file.3.1.24
 
[sowso221]~/tmp/fs_demo: STAF local FS LIST DIRECTORY ~/tmp/fs_demo LONG 
TYPE L
Response
--------
 
[sowso221]~/tmp/fs_demo: STAF local FS LIST DIRECTORY ~/tmp/fs_demo LONG
Response
--------
Type Size Modified Date-Time Name
---- ---- ------------------ -----------
D    4096 20080303-11:08:24  dir.3.1.24
D    4096 20080303-11:08:24  dir
F    0    20080303-11:08:56  file.3.1.24
F    0    20080303-11:08:56  file
 
Am I missing the point or shouldn?t the type of dir and file not be L?
 
I tried that on linux and solaris both with STAF staf-3.1.3. I cannot 
upgrade myself but since I didn?t find anything in the history I assume 
this would be the same in newer Versions.
 
Regards Michael
 
 
Michael Werner 
 
 
 
Ericsson GmbH
 
EDD/XMB/DB
Gerberstr. 33
71522, Backnang, Germany,
www.ericsson.com
 
 
Office: +49 7191 13 2374
 
 
Email  : [EMAIL PROTECTED] 
 


Ericsson GmbH. Sitz: Düsseldorf. Registergericht: Amtsgericht Düsseldorf, 
HRB 33012. Geschäftsführer: Carsten Ahrens. Aufsichtsratsvorsitzender: 
Anders Olin
 
This communication is confidential and intended solely for the 
addressee(s). Any unauthorized review, use, disclosure or distribution is 
prohibited. If you believe this message has been sent to you in error, 
please notify the sender by replying to this transmission and delete the 
message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption, 
interception, unauthorized amendment, tampering and viruses, and we only 
send and receive emails on the basis that we are not liable for any such 
corruption, interception, amendment, tampering or viruses or any 
consequences thereof.
 -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to