summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2005-03-09 21:43:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:56 -0500
commit779191f26066934773b00e1ba55df635e5c6851e (patch)
tree3a6a5b0fe5970a5266a642ec82a0bbdd02d074c0 /source3/include
parent32416866dd956c6bb03909bc5544d96891443314 (diff)
downloadsamba-779191f26066934773b00e1ba55df635e5c6851e.tar.gz
samba-779191f26066934773b00e1ba55df635e5c6851e.tar.bz2
samba-779191f26066934773b00e1ba55df635e5c6851e.zip
r5715: Update for new CIFS POSIX info levels
(This used to be commit af12daba2ae57a1f768248ba60d7769063f8200b)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/trans2.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/include/trans2.h b/source3/include/trans2.h
index b1fe2d9d83..68358344f4 100644
--- a/source3/include/trans2.h
+++ b/source3/include/trans2.h
@@ -433,7 +433,12 @@ Offset Size Name
#define SMB_QUERY_FILE_UNIX_LINK 0x201
#define SMB_SET_FILE_UNIX_LINK 0x201
#define SMB_SET_FILE_UNIX_HLINK 0x203
+/* SMB_QUERY_POSIX_ACL 0x204 see below */
+#define SMB_QUERY_XATTR 0x205 /* need for non-user XATTRs */
+#define SMB_QUERY_ATTR_FLAGS 0x206 /* chflags, chattr */
+#define SMB_SET_ATTR_FLAGS 0x206
+/* Transact 2 Find First levels */
#define SMB_FIND_FILE_UNIX 0x202
/*
@@ -457,6 +462,26 @@ Offset Size Name
#define CIFS_UNIX_FCNTL_LOCKS_CAP 0x1
#define CIFS_UNIX_POSIX_ACLS_CAP 0x2
+#define SMB_QUERY_POSIX_FS_INFO 0x201
+
+/* Returns FILE_SYSTEM_POSIX_INFO struct as follows
+ (NB For undefined values return -1 in that field)
+ le32 OptimalTransferSize; bsize on some os, iosize on other os, This
+ is a hint to the client about best size. Server
+ can return -1 if no preference, ie if SMB
+ negotiated size is adequate for optimal
+ read/write performance
+ le32 BlockSize; (often 512 bytes) NB: BlockSize * TotalBlocks = disk space
+ le64 TotalBlocks; redundant with other infolevels but easy to ret here
+ le64 BlocksAvail; although redundant, easy to return
+ le64 UserBlocksAvail; bavail
+ le64 TotalFileNodes;
+ le64 FreeFileNodes;
+ le64 FileSysIdentifier; fsid
+ (NB statfs field Namelen comes from FILE_SYSTEM_ATTRIBUTE_INFO call)
+ (NB statfs field flags can come from FILE_SYSTEM_DEVICE_INFO call)
+*/
+
/* ... more as we think of them :-). */
/* SMB POSIX ACL definitions. */