Displaying 2 results from an estimated 2 matches for "smbc_dos_mode_readonly".
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.]
...utes only. Snippet from libsmbclient.h.....
> ....
> /*
> ?* Mappings of the DOS mode bits, as returned by smbc_getxattr() when the
> ?* attribute name "system.dos_attr.mode" (or "system.dos_attr.*" or
> ?* "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 require...