[Ql-Users] symbolic links in NFA directories of SMSQmulator 2.14

2015-12-27 Thread Marcos Cruz

I'm trying SMSQmulator 2.14 on Raspberry Pi 2. So far everything works
fine, and I'm impressed by the fact the speed is enough for useful work,
considering it's written in Java and the RPi is a slow machine.

But I've found something strange about `dir` and the NFA device. In
order to find out the error condition I've done several tests, and it
seems the problem arises when any directory of a native file sytem path
associated to a SMSQ/E device is a symbolic link.

Example 1:

  nfa_use 1, "/tmp/ql/mnt/data/"
  nfa_use 2, "/tmp/ql/ql-LINK/mnt/data/"

Where "ql-LINK" is a symbolic link to "/tmp/ql/", and "data/" contains
"info_txt" (a file) and "basic/" ( a directory).

`dir nfa1_` works fine, it shows the directory as usual:

  info_txt
  basic ->

But `dir nfa2_` produces this:

  _txt
  _**UNKNOWN** ->

Example 2:

  nfa_use 1, "/home/myuser/temp/ql/mnt/data/"
  nfa_use 2, "/home/myuser/temp/ql-LINK/mnt/data/"

Where "ql-LINK" is a symbolic link to "/home/myuser/temp/computer/ql/"
(where "mnt/data/" is) and both "data/" directories contain "info_txt"
(a file) and "basic/" (a directory).

`dir nfa1_` works fine:

  info_txt
  basic ->

But `dir nfa2_` produces this:

  ata_basic ->
  ata_text_txt

Happily, it seems file access is not affected. This works fine on both
examples above:

  copy nfa1_text_txt,con_
  copy nfa2_text_txt,con_

The SMSQmulator documentation includes a detailed explanation of the NFA
and NSA devices, including the filename rules, but no mention to
symbolic links. Has anybody found any other issue about them?

-- 
Marcos Cruz
http://programandala.net
___
QL-Users Mailing List


Re: [Ql-Users] symbolic links in NFA directories of SMSQmulator 2.14

2015-12-27 Thread Timothy Swenson

I did some testing myself and I'm getting slightly different behavior.

I'm running SMSQmulator 2.14.  OS is Lubuntu (Linux
swensont-ThinkPad-L430 3.13.0-74-generic #118-Ubuntu SMP).

I created a director NFA3, put two files in it and then a symbolic link
to another file:

-rw-rw-r-- 1 swensont swensont  0 Dec 27 19:12 test2.txt
-rw-rw-r-- 1 swensont swensont  0 Dec 27 19:12 test.txt
lrwxrwxrwx 1 root root 16 Dec 27 19:25 xx.txt -> ../NFA/nfa4.txt

When I do a "wdir nfa3_" I see the following:

   test2.txt
   nfa4.txt
   test.txt

It looks like it follows the symbolic link to get the linked file name. 
 If I do a "wstat nfa3_" I get "unknown" on the date stamp on the file.


I don't believe Wolfgang develops on Linux so he might not think about 
these issues.


Tim Swenson

___
QL-Users Mailing List


[Ql-Users] symbolic links in NFA directories of SMSQmulator 2.14

2015-12-27 Thread Wolfgang Lenerz

Hi Marcos and Timothy,

Thanks for pointing that out.

Actually, I never thought to test symbolic links.

I'll check and try to correct that.

Wolfgang


___
QL-Users Mailing List