[PATCH] FileFsFullSizeInformation disk resource support

Nicolas Collignon <[email protected]>
Newsgroups gmane.network.rdesktop.devel
Message-ID <[email protected]>
Hi,

While using rdesktop with Windows 2008 64 bits, the Terminal Server
host keeps trying to use the FileFsFullSizeInformation info class.
This query type is not currently supported:
NOT IMPLEMENTED: IRP Query Volume Information class: 0x7

The attached patch add support for FileFsFullSizeInformation which is
almost a  FileFsSizeInformation copy/paste.

Best regards,

Nicolas Collignon

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d

_______________________________________________
rdesktop-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdesktop-devel
rdesktop-FileFsFullSizeInformation-support.diff (text/x-patch, 1.1 KB)
--- rdesktop/disk.c	2010-12-20 11:17:31.000000000 +0100
+++ rdesktop.new/disk.c	2010-12-20 11:24:17.000000000 +0100
@@ -1086,6 +1086,18 @@
 			out_uint32_le(out, 0x200);	/* Bytes per sector */
 			break;
 
+		case FileFsFullSizeInformation:
+
+			out_uint32_le(out, stat_fs.f_blocks);   /* Total allocation units low */
+			out_uint32_le(out, 0);  /* Total allocation units high */
+			out_uint32_le(out, stat_fs.f_blocks);   /* Caller allocation units low */
+			out_uint32_le(out, 0);  /* Caller allocation units high */
+			out_uint32_le(out, stat_fs.f_bfree);    /* Available allocation units */
+			out_uint32_le(out, 0);  /* Available allowcation units */
+			out_uint32_le(out, stat_fs.f_bsize / 0x200);    /* Sectors per allocation unit */
+			out_uint32_le(out, 0x200);      /* Bytes per sector */
+			break;
+
 		case FileFsAttributeInformation:
 
 			out_uint32_le(out, FS_CASE_SENSITIVE | FS_CASE_IS_PRESERVED);	/* fs attributes */
@@ -1098,7 +1110,6 @@
 		case FileFsLabelInformation:
 		case FileFsDeviceInformation:
 		case FileFsControlInformation:
-		case FileFsFullSizeInformation:
 		case FileFsObjectIdInformation:
 		case FileFsMaximumInformation:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.