[linux-cifs-client] special files on Services for Unix (SFU) / Interix

Martin Koeppe mkoeppe at gmx.de
Fri Jun 3 22:11:52 GMT 2005


Hello Steve,

>> Have you done any tests of Windows SFU -> Windows SFU over the network,
>> presumably these Interix special files are handled to Windows the same
>> as they would to Samba since they are not utilizing protocol extensions
>> to CIFS (obscure Windows NTFS trans2 infolevels) to accomplish them.

> don't fully sure what exactly I should test.
> However, I did the following:
>
> On Linux, I created some special files with the attached
> perl script. These files I put into a samba share with
> "map system = yes".
> This share I conected to a Win 2000 client and did in
> Interix:
>
> bash-2.05b$ ls -ln
> total 1
> drw-rwxrw-  1 3002  3003   0 Jun  3 02:30 testblock
> drw-rwxrw-  1 3002  3003   0 Jun  3 02:30 testchar
> drw-rwxrw-  1 3002  3003   0 Jun  3 02:30 testfifo
> drw-rwxrw-  1 3002  3003  30 Jun  3 02:30 testlink
>
> same dir with attrib:
> G:\>attrib
>    S       G:\testblock
>    S       G:\testchar
>    S       G:\testfifo
>    S       G:\testlink
>
> This doesn't work correctly, but it works a bit, as testblock
> and testchar aren't 0 bytes in reality, and are no dirs. But this seems 
> to be a samba problem.

this has nothing to do with special files on samba:
bash-2.05b$ ls -ln
total 2
drw-r--r--  1 3002  3003   6 Jun  3 23:56 hello_world
drw-rwxrw-  1 3002  3003   0 Jun  3 23:56 testblock
drw-rwxrw-  1 3002  3003   0 Jun  3 23:56 testchar
drw-rwxrw-  1 3002  3003   0 Jun  3 23:56 testfifo
drw-rwxrw-  1 3002  3003  30 Jun  3 23:56 testlink
bash-2.05b$ ls -ln *
-rw-r--r--  1 3002  3003         6 Jun  3 23:56 hello_world
brw-rwxrw-  1 3002  3003   44,  45 Jun  3 02:25 testblock
crw-rwxrw-  1 3002  3003   42,  43 Jun  3 02:25 testchar
prw-rwxrw-  1 3002  3003         0 Jun  3 02:25 testfifo
lrw-rwxrw-  1 3002  3003        11 Jun  3 02:25 testlink -> hello_world
bash-2.05b$

hello_world is a normal plain text file and is shown as
directory also. However, when doing "ls -ln *", all is ok.
I see this "directorisation" on all files and all shares
coming from my samba server, not only those with special files.

Martin


More information about the linux-cifs-client mailing list