[Samba] How do i get file attributes using samba.
naga_kishore_kommuri at yahoo.com
naga_kishore_kommuri at yahoo.com
Mon Jun 20 23:18:46 MDT 2011
Hi,
I tried smbc_getxattr() with "system.dos_attr.mode"
and I guess it will give me following attributes only...
#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
How can I get other attributes?
thanks,
-Kishore
________________________________
From: "naga_kishore_kommuri at yahoo.com" <naga_kishore_kommuri at yahoo.com>
To: "samba at lists.samba.org" <samba at lists.samba.org>
Sent: Monday, June 20, 2011 1:28 PM
Subject: [Samba] 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
#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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list