[RFC][SAMBA3] minimal named stream support

James Peach jpeach at samba.org
Thu Jun 28 18:59:16 GMT 2007

On Jun 28, 2007, at 10:05 AM, Kaya Bekiroğlu wrote:

>> The patch does the bare minimum required to get stream pathnames
>> through reply_ntcreate_and_X and into the VFS layer. The goal of this
>> patch is not to have the best possible stream support, but to support
>> named streams with minimally intrusive changes to the Samba code.
> Very nice!  Within the VFS layer, how do you disambiguate between a  
> legitimate stream request and a demangled name which contains a  
> colon (':'), such as one created via NFS?

I don't. In all the path-based requests, I use split_ntfs_stream_name  
to figure out the path and the stream name. If the path contains a  
colon, then matching the stream name to an extended attribute (or  
whatever) will fail, and the corresponding open will fail.

Another weakness (though not intrinsic) of my approach is that when I  
have a stream mapped to an extended attribute, I hold a file  
descriptor open on the file that hosts the extended attribute. You  
kinda have to do this because you can't let the file disappear while  
the stream is open. On the other hand, doing this will really mess  
with  posix locks.

James Peach | jpeach at samba.org

More information about the samba-technical mailing list