Rowland Penny
2019-Mar-04 18:39 UTC
[Samba] Enable XAT_OFFLINE extended attribute in Samba
On Mon, 4 Mar 2019 10:25:59 -0800 Jeremy Allison via samba <samba at lists.samba.org> wrote:> On Mon, Mar 04, 2019 at 04:48:56PM +0100, Andrea Cucciarre' via samba > wrote: > > Hello, > > > > Does Samba support XAT_OFFLINE and XAT_ONLINE extended attribute? > > I have enabled "ea support = yes" but it seems to have no effect on > > that. > > Googling for XAT_OFFLINE or XAT_ONLINE doesn't return anything.Yeh, my Googlefu is better than somebody who works for Google ;-) It seems to be something to do with ZFS on illumos: https://github.com/openzfs/openzfs/blob/master/usr/src/uts/common/fs/xattr.c Rowland> > Do you mean the Windows FILE_ATTRIBUTE_OFFLINE attribute ? > > If so, yes, we support that if the server is using dmapi. >
Jeremy Allison
2019-Mar-04 19:06 UTC
[Samba] Enable XAT_OFFLINE extended attribute in Samba
On Mon, Mar 04, 2019 at 06:39:21PM +0000, Rowland Penny wrote:> On Mon, 4 Mar 2019 10:25:59 -0800 > Jeremy Allison via samba <samba at lists.samba.org> wrote: > > > On Mon, Mar 04, 2019 at 04:48:56PM +0100, Andrea Cucciarre' via samba > > wrote: > > > Hello, > > > > > > Does Samba support XAT_OFFLINE and XAT_ONLINE extended attribute? > > > I have enabled "ea support = yes" but it seems to have no effect on > > > that. > > > > Googling for XAT_OFFLINE or XAT_ONLINE doesn't return anything. > > Yeh, my Googlefu is better than somebody who works for Google ;-)Oh the shame, the shame :-). Having said that I am at a conference and really should be paying attention to the lectures :-).> It seems to be something to do with ZFS on illumos: > > https://github.com/openzfs/openzfs/blob/master/usr/src/uts/common/fs/xattr.cThnaks Rowland, I'll take a look !
Andrea Cucciarre'
2019-Mar-05 12:14 UTC
[Samba] Enable XAT_OFFLINE extended attribute in Samba
My goal is to use the Offline file attribute of Windows when sharing with Samba: https://docs.microsoft.com/en-us/dotnet/api/system.io.fileattributes?redirectedfrom=MSDN&view=netframework-4.7.2 It works when I share ZFS filesystem using the native ZFS CIFS sharing, but it fails when I share the same ZFS with Samba, that is the Offline files are not showed in Windows Client Il 3/4/2019 8:06 PM, Jeremy Allison via samba ha scritto:> On Mon, Mar 04, 2019 at 06:39:21PM +0000, Rowland Penny wrote: >> On Mon, 4 Mar 2019 10:25:59 -0800 >> Jeremy Allison via samba <samba at lists.samba.org> wrote: >> >>> On Mon, Mar 04, 2019 at 04:48:56PM +0100, Andrea Cucciarre' via samba >>> wrote: >>>> Hello, >>>> >>>> Does Samba support XAT_OFFLINE and XAT_ONLINE extended attribute? >>>> I have enabled "ea support = yes" but it seems to have no effect on >>>> that. >>> Googling for XAT_OFFLINE or XAT_ONLINE doesn't return anything. >> Yeh, my Googlefu is better than somebody who works for Google ;-) > Oh the shame, the shame :-). Having said that I am at > a conference and really should be paying attention to the > lectures :-). > >> It seems to be something to do with ZFS on illumos: >> >> https://github.com/openzfs/openzfs/blob/master/usr/src/uts/common/fs/xattr.c > Thnaks Rowland, I'll take a look ! >