]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-no-smb-ioctl-info-20060305
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 5 Mar 2006 20:55:14 +0000 (20:55 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 5 Mar 2006 20:55:14 +0000 (20:55 +0000)
don't support functions we don't implement.  the CIFS trans2 get info
ioctl is not equivalent to the AFS Get Volume Status function

(cherry picked from commit cea063c0d48bb81c6349298ecdf5dfcc0f39733b)

src/WINNT/afsd/smb_ioctl.c

index 83aea1203fc0ce328da843edbbd46dfdf23a6646..b9184d7297a1a672a1f8932fd2b7b81258756376 100644 (file)
@@ -40,8 +40,14 @@ void smb_InitIoctl(void)
     smb_ioctlProcsp[VIOCSETAL] = cm_IoctlSetACL;
     smb_ioctlProcsp[VIOC_FLUSHVOLUME] = cm_IoctlFlushVolume;
     smb_ioctlProcsp[VIOCFLUSH] = cm_IoctlFlushFile;
+#ifdef COMMENT
+    /* This functions do not return the data expected by the 
+     * Windows CIFS client.  Calling them only increases the 
+     * number of roundtrips to the file server with no benefit.
+     */
     smb_ioctlProcsp[VIOCSETVOLSTAT] = cm_IoctlSetVolumeStatus;
     smb_ioctlProcsp[VIOCGETVOLSTAT] = cm_IoctlGetVolumeStatus;
+#endif
     smb_ioctlProcsp[VIOCWHEREIS] = cm_IoctlWhereIs;
     smb_ioctlProcsp[VIOC_AFS_STAT_MT_PT] = cm_IoctlStatMountPoint;
     smb_ioctlProcsp[VIOC_AFS_DELETE_MT_PT] = cm_IoctlDeleteMountPoint;