From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f195.google.com ([209.85.210.195]:36118 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH2BRH (ORCPT ); Tue, 28 Aug 2018 21:17:07 -0400 Received: by mail-pf1-f195.google.com with SMTP id b11-v6so1268249pfo.3 for ; Tue, 28 Aug 2018 14:23:37 -0700 (PDT) MIME-Version: 1.0 References: <20180827170531.GC217636@jra3> <20180827182143.GB24544@bombadil.infradead.org> <20180828004523.GB2304@thunk.org> <20180828181245.GE41380@jra3> <20180828184057.GB97108@jra3> <20180828194742.GD97108@jra3> <20180828204711.GH97108@jra3> <1167f7cb-e4d7-0d6d-5025-1903fb3b1888@samba.org> In-Reply-To: <1167f7cb-e4d7-0d6d-5025-1903fb3b1888@samba.org> From: Steve French Date: Tue, 28 Aug 2018 16:23:24 -0500 Message-ID: Subject: Re: Streams support in Linux To: "Stefan (metze) Metzmacher" Cc: Jeremy Allison , Theodore Tso , samba-technical , Matthew Wilcox , ebiggers@kernel.org, Al Viro , linux-fsdevel , =?UTF-8?B?UmFscGggQsO2aG1l?= Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Aug 28, 2018 at 4:19 PM Stefan Metzmacher wrote: > > Am 28.08.2018 um 22:47 schrieb Jeremy Allison via samba-technical: > > On Tue, Aug 28, 2018 at 03:43:45PM -0500, Steve French wrote: > >> > >> In theory I could construct a struct fd by setting up a struct file on the fly > >> (see "alloc_empty_file" for example) and the few dozen fields in it, > >> but it would be a lot easier to return them as xattrs with a reserved > >> prefix (e.g. "streams") > >> since most of these are small (some examples) and could have been > >> stored in xattrs > >> if the Apple or Windows developers had wanted to > >> > >> "streams.ZoneIdentifier" (for Internet Explorer download security info) > >> "streams.favicon" (for Internet explorer icons) > >> "streams.AFP_AfpInfo" and "streams.AFP_Resource" (for two common Mac streams) > >> "streams.XPRESS" (for compression) > > > > Hmmm. Yeah, I guess this works if you can ensure > > the prefix is reserved. > > Remember some of the AFP stream can get very large, Ralph should have > more details about it. > > Also from reading [MS-FSA] I have the impression that opens on stream > would also support oplocks/leases as well as byte range locks. Larger than 8MB (maximum i/o size for read)? -- Thanks, Steve