volume: daemon handles FileFsAttributeInformation

added FILE_FS_ATTRIBUTE_INFORMATION and FileSystemAttributes flags to from_kernel.h
queries case_preserving, case_insensitive attributes to fill in FileSystemAttributes, and uses #defines from nfs41_const.h for MaximumComponentNameLength and FileSystemName

Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
Casey Bodley 2010-10-11 16:12:20 -04:00
parent c13ed30b9a
commit d38360672d
6 changed files with 109 additions and 2 deletions

View file

@ -140,6 +140,13 @@ typedef struct __volume_upcall_args {
union {
FILE_FS_SIZE_INFORMATION size;
FILE_FS_FULL_SIZE_INFORMATION fullsize;
FILE_FS_ATTRIBUTE_INFORMATION attribute;
/* attribute.FileSystemName is WCHAR[1], so even though there's
* some extra space in the union from other members, reserve
* enough space for an arbitrary NFS41_FILESYSTEM_NAME_LEN */
unsigned char buffer[sizeof(FILE_FS_ATTRIBUTE_INFORMATION) +
NFS41_FILESYSTEM_NAME_LEN];
} info;
} volume_upcall_args;