From: John Drescher on
On Mon, May 17, 2010 at 3:59 PM, Marten Gajda
<marten.gajda(a)fernuni-hagen.de> wrote:
> Am 17.05.2010 18:56, schrieb Jeremy Allison:
>> Do you have "vfs objects = streams_xattr" or "vfs objects = streams_depot"
>> set on the share ? You'll need this to map named streams to filesystem
>> objects on a POSIX system.
>>
>>
> I didn't enable any of them. That's why I'm wondering that some streams
> actually do work for me. The way streams are currently handled (just
> like regular files) is quite sufficient for me. Its just that samba does
> not advertise this feature.
> I didn't know about the streams_depot so far. Is there any documentation
> about the stream naming scheme within the depot directory?
>
http://www.samba.org/samba/docs/man/manpages-3/vfs_streams_depot.8.html

John
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Marten Gajda on
Am 17.05.2010 20:37, schrieb Volker Lendecke:
> Try
> share:fake_fscaps = 262144
>
>
Ok, that enabled the "named streams" capability and
QueryStreamInformationFile is called now. But still the "Summary"
property sheet is not visible for files on my share. Obviously it is not
as easy as I was hoping.
I think I'm going to try the streams_depot soon.

btw.:
Strange enough, but the Zone-Identifier stream now fully works, even
without faking the fscaps or any vfs module. It turned out there was a
bug in my code, so that the stream content wasn't always interpreted
correctly. I can copy files from other volumes and Windows still knows
that its from the internet.

thank you,

Marten

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Marten Gajda on
Am 17.05.2010 21:50, schrieb Jeremy Allison:
> On Mon, May 17, 2010 at 09:42:44PM +0200, Marten Gajda wrote:
>
>> I don't have any vfs module enabled. So at least some streams do work
>> without streams_xattr. As I already mentioned the :Zone-Identifier
>> stream is working to a certain degree.
>>
> Not correctly, and I don't see how to be honest.
>
The Zone.Identifier indeed is fully working now. Even if I copy a
downloaded executable from another volume I get a warning when I open
the file. In the logs of my file system I can see the creation of the
stream. It is treated just like a regular file. The difference is: my
file system doesn't list the ADS files.
>> If I store a file (with Firefox) on the share this stream is created and
>> the explorer property sheet evaluates its content and tells me the file
>> is from the internet (I can "unlock" the file too).
>> It also works if I manually fakes the file's origin. But on the other
>> hand, this stream is not created when I copy a file from another NTFS drive.
>> As there is no use for xattrs in my file system I'd like to get this
>> stuff working without them.
>>
> Can't be done. You need to have either the streams_xattr
> module or streams_depot module enabled to get streams
> support. Where do you think the stream data will get stored on
> the filesysytem if you don't enable either of these ?
>
>
They could be stored like regular files among the other files. Actually
that's exactly what samba was trying to do (without these modules), and
that's how I learned about the existence of ADS. I was wondering what
strange file names appeared in my logs after upgrading from samba 3.0.37.
My file system knows about (some) streams and doesn't list them,
although you can read and write them. But I have to admit that Samba had
a hard time to know which streams exist if they are not listed.
I'll have a look at the streams_depot module.

regards

Marten


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Jeremy Allison on
On Tue, May 18, 2010 at 12:58:09AM +0200, Marten Gajda wrote:

> They could be stored like regular files among the other files.

Then they're regular files, not alternate data streams. That
makes no sense.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Marten Gajda on
Am 18.05.2010 01:00, schrieb Jeremy Allison:
> On Tue, May 18, 2010 at 12:58:09AM +0200, Marten Gajda wrote:
>
>
>> They could be stored like regular files among the other files.
>>
> Then they're regular files, not alternate data streams. That
> makes no sense.
>
>
I guess that's exactly what they are in a "streams_depot", except that
they are stored in a different directory. Also, these file's names
always contain a ':' which makes them different as this is not allowed
in regular windows file names. So files with a ':' could be treated as
ADS if there is a file (or directory) with a matching "base name" (i.e.
the part before the first ':') in the same directory.
Of course this could break some existing shares which already have file
names containing a ':' . But (as far as my experience goes) file names
containing illegal characters get mangled to some cryptic string which
makes them pretty useless anyway.

regards

Marten
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba