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

Martin Koeppe mkoeppe at gmx.de
Fri Jun 3 01:29:47 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. So I copied these files with the windows
explorer to a W2K3 share and did again, et voila:

brwx------+ 1 1616  49089   44,  45 Jun  3 02:25 testblock
crwx------+ 1 1616  49089   42,  43 Jun  3 02:25 testchar
prwx------+ 1 1616  49089         0 Jun  3 02:25 testfifo
lrwx------+ 1 1616  49089        11 Jun  3 02:25 testlink -> hello_world

attrib shows
V:\>attrib
   S       V:\testblock
   S       V:\testchar
   S       V:\testfifo
   S       V:\testlink

and there is no difference for Interix when attrib shows:

V:\>attrib
A  S       V:\testblock
A  S       V:\testchar
A  S       V:\testfifo
A  S       V:\testlink


Then I copied these files from a Win98 box to its local disk (VFAT),
shared it, and accessed that share from the W2K box (the only one I
currently have Interix available, but I can install it elsewhere if
it's necessary):

I:\>attrib
A  S       I:\testblock
A  S       I:\testchar
A  S       I:\testfifo
A  S       I:\testlink

bash-2.05b$ ls -ln
total 1
brwxrwxrwx  1 -1   -2    44,  45 Jun  3 02:25 testblock
crwxrwxrwx  1 -1   -2    42,  43 Jun  3 02:25 testchar
prwxrwxrwx  1 -1   -2          0 Jun  3 02:25 testfifo
lrwxrwxrwx  1 -1   -2         11 Jun  3 02:25 testlink -> hello_world

I'll further test in the next days,
why it don't work on the samba share.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interix.pl
Type: application/octet-stream
Size: 560 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux-cifs-client/attachments/20050603/95c017cf/interix.obj


More information about the linux-cifs-client mailing list