summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-08 00:21:26 +0000
committerJeremy Allison <jra@samba.org>2001-11-08 00:21:26 +0000
commit04a0293601189adca1beed189216bf2ba09aa174 (patch)
tree6166c64fa170b8848732ffe0036bdc50c980300d /source3
parent3343d0281d460559f6893a136991ef6492639bbe (diff)
downloadsamba-04a0293601189adca1beed189216bf2ba09aa174.tar.gz
samba-04a0293601189adca1beed189216bf2ba09aa174.tar.bz2
samba-04a0293601189adca1beed189216bf2ba09aa174.zip
Added more define bits. Fixed error in vol attributes.
Jeremy. (This used to be commit eba8204bfadb176fafb686a35295a09f0f35b894)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h9
-rw-r--r--source3/smbd/trans2.c1
2 files changed, 6 insertions, 4 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 1cf315c387..af73b64d15 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1090,7 +1090,9 @@ struct bitmap {
#define FILE_ATTRIBUTE_ARCHIVE aARCH
#define FILE_ATTRIBUTE_NORMAL 0x80L
#define FILE_ATTRIBUTE_TEMPORARY 0x100L
+#define FILE_ATTRIBUTE_SPARSE 0x200L
#define FILE_ATTRIBUTE_COMPRESSED 0x800L
+#define FILE_ATTRIBUTE_NONINDEXED 0x2000L
#define SAMBA_ATTRIBUTES_MASK 0x7F
/* Flags - combined with attributes. */
@@ -1144,9 +1146,10 @@ struct bitmap {
/* Acconding to testing, this actually sets the security attribute! */
#define FILE_PERSISTENT_ACLS 0x08
/* These entries added from cifs9f --tsb */
-#define FILE_FILE_COMPRESSION 0x08
-#define FILE_VOLUME_QUOTAS 0x10
-#define FILE_DEVICE_IS_MOUNTED 0x20
+#define FILE_FILE_COMPRESSION 0x10
+#define FILE_VOLUME_QUOTAS 0x20
+/* I think this is wrong. JRA #define FILE_DEVICE_IS_MOUNTED 0x20 */
+#define FILE_VOLUME_SPARSE_FILE 0x40
#define FILE_VOLUME_IS_COMPRESSED 0x8000
/* ChangeNotify flags. */
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index a5a54751c3..0bc594cba1 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1158,7 +1158,6 @@ static int call_trans2qfsinfo(connection_struct *conn,
case SMB_QUERY_FS_ATTRIBUTE_INFO:
SIVAL(pdata,0,FILE_CASE_PRESERVED_NAMES|FILE_CASE_SENSITIVE_SEARCH|
- FILE_DEVICE_IS_MOUNTED|
(lp_nt_acl_support(SNUM(conn)) ? FILE_PERSISTENT_ACLS : 0)); /* FS ATTRIBUTES */
SIVAL(pdata,4,255); /* Max filename component length */
len = srvstr_push(outbuf, pdata+12, fstype, -1, STR_TERMINATE);