From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hr2.samba.org ([144.76.82.148]:56004 "EHLO hr2.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH2Aki (ORCPT ); Tue, 28 Aug 2018 20:40:38 -0400 Date: Tue, 28 Aug 2018 13:47:11 -0700 From: Jeremy Allison To: Steve French Cc: Theodore Tso , Matthew Wilcox , Al Viro , linux-fsdevel , ebiggers@kernel.org, samba-technical Subject: Re: Streams support in Linux Message-ID: <20180828204711.GH97108@jra3> Reply-To: Jeremy Allison References: <20180827170531.GC217636@jra3> <20180827182143.GB24544@bombadil.infradead.org> <20180828004523.GB2304@thunk.org> <20180828181245.GE41380@jra3> <20180828184057.GB97108@jra3> <20180828194742.GD97108@jra3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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.