Displaying 2 results from an estimated 2 matches for "smbc_dos_mode_arch".
2011 Jun 20
2
How do i get file attributes using samba.
Hi,
I need to extract the following attributes of a file in Windows share using samba.
/* FileAttributesField */
#define FILE_ATTRIBUTE_READONLY???????? 0x001L
#define FILE_ATTRIBUTE_HIDDEN?????????? 0x002L
#define FILE_ATTRIBUTE_SYSTEM?????????? 0x004L
#define FILE_ATTRIBUTE_DIRECTORY??????? 0x010L
#define FILE_ATTRIBUTE_ARCHIVE????????? 0x020L
#define FILE_ATTRIBUTE_NORMAL?????????? 0x080L
2011 Jun 21
0
[jra@samba.org: Re: How do i get file attributes using samba.]
...gt; ?* "system.*") is specified.
> ?*/
> #define SMBC_DOS_MODE_READONLY?????? 0x01
> #define 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...