svn commit: samba r5715 - in branches/SAMBA_3_0/source/include: .
sfrench at samba.org
sfrench at samba.org
Wed Mar 9 21:43:00 GMT 2005
Author: sfrench
Date: 2005-03-09 21:43:00 +0000 (Wed, 09 Mar 2005)
New Revision: 5715
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5715
Log:
Update for new CIFS POSIX info levels
Modified:
branches/SAMBA_3_0/source/include/trans2.h
Changeset:
Modified: branches/SAMBA_3_0/source/include/trans2.h
===================================================================
--- branches/SAMBA_3_0/source/include/trans2.h 2005-03-09 21:31:19 UTC (rev 5714)
+++ branches/SAMBA_3_0/source/include/trans2.h 2005-03-09 21:43:00 UTC (rev 5715)
@@ -433,7 +433,12 @@
#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 @@
#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. */
More information about the samba-cvs
mailing list