Bug 6855 - streams_depot - alternate data streams should be case preserving but case insensitive to match Win2K3 R2 NTFS behavior
Summary: streams_depot - alternate data streams should be case preserving but case ins...
Status: NEW
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.0.0rc1
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 12:14 UTC by Steve Douglas (dead mail address)
Modified: 2012-11-07 19:21 UTC (History)
3 users (show)

See Also:


Attachments
Potential Patch for this issue? (1.60 KB, patch)
2009-10-28 17:12 UTC, Steve Douglas (dead mail address)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Douglas (dead mail address) 2009-10-28 12:14:15 UTC
I don't think Stream names should not be case sensitive.  They are case sensitive, unlike a win2k3 R2 file server CIFS share.

I am running samba with (vfs objects = streams_depot) in the smb.conf file.

In the following example, drive Y: is mapped to a win2k3 R2 CIFS
share, while drive Z: is mapped to a Samba 3.4.0 share.  I have
created an ADS "streams.exe:Zone.Identifier".

---------------------- Samba behavior -----------
Z:\>more < streams.exe:Zone.Identifier
[ZoneTransfer]
ZoneId=3

Z:\>more < streams.exe:zone.identifier
The system cannot find the file specified.

-------------------------- Windows Behavior ------------
Y:\>more < streams.exe:Zone.Identifier
[ZoneTransfer]
ZoneId=3

Y:\>more < streams.exe:zone.identifier
[ZoneTransfer]
ZoneId=3
Comment 1 Steve Douglas (dead mail address) 2009-10-28 17:12:05 UTC
Created attachment 4902 [details]
Potential Patch for this issue?

Here is what I did to get this to work for me.  Basically just concatenated :$DATA" to the stream name before doing the comparison to see if the file already exists.
Comment 2 Björn Jacke 2012-09-13 07:38:41 UTC
good point, we should also make a torture test for this I think.