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

@ -1546,6 +1546,14 @@ static bool_t decode_file_attrs(
if (!xdr_u_int32_t(xdr, &info->rdattr_error))
return FALSE;
}
if (attrs->attrmask.arr[0] & FATTR4_WORD0_CASE_INSENSITIVE) {
if (!xdr_bool(xdr, &info->case_insensitive))
return FALSE;
}
if (attrs->attrmask.arr[0] & FATTR4_WORD0_CASE_PRESERVING) {
if (!xdr_bool(xdr, &info->case_preserving))
return FALSE;
}
if (attrs->attrmask.arr[0] & FATTR4_WORD0_FILEID) {
if (!xdr_u_hyper(xdr, &info->fileid))
return FALSE;