summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-02-18 03:54:26 +0000
committerJeremy Allison <jra@samba.org>2000-02-18 03:54:26 +0000
commit801ed2389b97f921aa855513696d304c542fda04 (patch)
tree2223334165977c110d9b8717d0761b6aee5dae26
parent0ec82d661a27a02322e5c8da20a18f33bfb24a3e (diff)
downloadsamba-801ed2389b97f921aa855513696d304c542fda04.tar.gz
Fix for reporting file system attributes correctly.
Jeremy.
-rw-r--r--source/include/smb.h15
-rw-r--r--source/smbd/trans2.c3
2 files changed, 13 insertions, 5 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index 085325939fd..18b2cb15424 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -1247,10 +1247,17 @@ struct bitmap {
#define RENAME_REPLACE_IF_EXISTS 1
/* Filesystem Attributes. */
-#define FILE_CASE_SENSITIVE_SEARCH 0x1
-#define FILE_CASE_PRESERVED_NAMES 0x2
-#define FILE_UNICODE_ON_DISK 0x4
-#define FILE_PERSISTENT_ACLS 0x8
+#define FILE_CASE_SENSITIVE_SEARCH 0x01
+#define FILE_CASE_PRESERVED_NAMES 0x02
+#define FILE_UNICODE_ON_DISK 0x04
+/* According to cifs9f, this is 4, not 8 */
+/* 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_VOLUME_IS_COMPRESSED 0x8000
/* ChangeNotify flags. */
#define FILE_NOTIFY_CHANGE_FILE_NAME 0x001
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index bd2237253e4..dff57a41c2a 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -1170,7 +1170,8 @@ static int call_trans2qfsinfo(connection_struct *conn,
{
int fstype_len;
SIVAL(pdata,0,FILE_CASE_PRESERVED_NAMES|FILE_CASE_SENSITIVE_SEARCH|
- lp_nt_acl_support() ? FILE_PERSISTENT_ACLS : 0); /* FS ATTRIBUTES */
+ FILE_DEVICE_IS_MOUNTED|
+ (lp_nt_acl_support() ? FILE_PERSISTENT_ACLS : 0)); /* FS ATTRIBUTES */
#if 0 /* Old code. JRA. */
SIVAL(pdata,0,0x4006); /* FS ATTRIBUTES == long filenames supported? */
#endif /* Old code. */