Displaying 9 results from an estimated 9 matches for "file_attribute_offline".
2008 Jul 31
1
Setting (exposing) FILE_ATTRIBUTE_OFFLINE for a share
Hi all,
Back in 2002 I opened a discussion on the samba-technical mailing list
regarding the WinNT FILE_ATTRIBUTE_OFFLINE (
http://lists.samba.org/archive/samba-technical/2002-April/020969.html).
Meanwhile some FILE_ATTRIBUTE_OFFLINE handling was implemented in the
'trunk' Samba. Currently (Samba 3.0.28a-1ubuntu4.4) provides the 'dmapi
support' option for representing the mentioned attribute. Unfortun...
2011 Jun 20
2
How do i get file attributes using samba.
...?? 0x010L
#define FILE_ATTRIBUTE_ARCHIVE????????? 0x020L
#define FILE_ATTRIBUTE_NORMAL?????????? 0x080L
#define FILE_ATTRIBUTE_TEMPORARY??????? 0x100L
#define FILE_ATTRIBUTE_SPARSE?????????? 0x200L
#define FILE_ATTRIBUTE_REPARSE_POINT??? 0x400L
#define FILE_ATTRIBUTE_COMPRESSED?????? 0x800L
#define FILE_ATTRIBUTE_OFFLINE????????? 0x1000L
#define FILE_ATTRIBUTE_NONINDEXED?????? 0x2000L
#define FILE_ATTRIBUTE_ENCRYPTED??????? 0x4000L
#define SAMBA_ATTRIBUTES_MASK?????????? 0x7F
Which API of samba library should I use to extract these attributes of a file.
Thanks
-Kishore
2019 Mar 05
3
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
2019 Mar 04
2
Enable XAT_OFFLINE extended attribute in Samba
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.
Thanks
Andrea
2011 Jun 21
0
[jra@samba.org: Re: How do i get file attributes using samba.]
...efine SMBC_DOS_MODE_HIDDEN???????? 0x02
> #define SMBC_DOS_MODE_SYSTEM???????? 0x04
> #define SMBC_DOS_MODE_VOLUME_ID????? 0x08
> #define SMBC_DOS_MODE_DIRECTORY????? 0x10
> #define SMBC_DOS_MODE_ARCHIVE??????? 0x20
> ....
> ....
>
>
>
> My requirement is to extract FILE_ATTRIBUTE_OFFLINE attribute.
As far as I can tell this code just returns the 16-bit
dos attributes field as defined in the protocol, so it
should just return the FILE_ATTRIBUTE_OFFLINE in the
returned bits (even if it's not listed in the SMB_DOS_MODE_XXX)
definitions.
Jeremy.
----- End forwarded message -----
2014 Jul 17
1
Using SMB_VFS_IS_OFFLINE for directories.
I made a small change to source3/smbd/dosmode.c to let my plugin on my
linux box return FILE_ATTRIBUTE_OFFLINE for directories, and so far
Windows (2008) seems okay with it. It displays the folder icon with the
"X" over it and it navigates the folder hierarchy without trouble (so far).
I can see that the SMB_VFS_IS_OFFLINE code went in originally for DMAPI
support (Bokovoy, Jan 2008, commit d...
2019 Mar 05
0
Enable XAT_OFFLINE extended attribute in Samba
...o external
storage, and to cope with reads/writes against
it.
Look at the VFS module source3/modules/vfs_tsmsm.c
which, as decribed, is:
Samba VFS module for handling offline files
with Tivoli Storage Manager Space Management
You would need to create a similar VFS module
on ZFS to expose the FILE_ATTRIBUTE_OFFLINE
flag to the client. Mostly it'll be wrapping
the [f]get_dos_attributes() VFS calls.
A bit fiddly, but doable (especially by companies
used to Samba coding internals).
Jeremy.
2019 Mar 07
1
Enable XAT_OFFLINE extended attribute in Samba
...against
> it.
>
> Look at the VFS module source3/modules/vfs_tsmsm.c
> which, as decribed, is:
>
> Samba VFS module for handling offline files
> with Tivoli Storage Manager Space Management
>
> You would need to create a similar VFS module
> on ZFS to expose the FILE_ATTRIBUTE_OFFLINE
> flag to the client. Mostly it'll be wrapping
> the [f]get_dos_attributes() VFS calls.
>
> A bit fiddly, but doable (especially by companies
> used to Samba coding internals).
>
> Jeremy.
2019 Mar 04
2
Enable XAT_OFFLINE extended attribute in Samba
...r 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.
>