making handle_volume_attributes void

This commit is contained in:
Olga Kornievskaia 2011-08-24 16:17:06 -04:00
parent bafc1ebdf7
commit 18797690a6

View file

@ -117,13 +117,12 @@ out:
return status; return status;
} }
static int handle_volume_attributes( static void handle_volume_attributes(
IN volume_upcall_args *args, IN volume_upcall_args *args,
IN nfs41_open_state *state) IN nfs41_open_state *state)
{ {
PFILE_FS_ATTRIBUTE_INFORMATION attr = &args->info.attribute; PFILE_FS_ATTRIBUTE_INFORMATION attr = &args->info.attribute;
const nfs41_superblock *superblock = state->file.fh.superblock; const nfs41_superblock *superblock = state->file.fh.superblock;
int status = NO_ERROR;
attr->FileSystemAttributes = FILE_SUPPORTS_REMOTE_STORAGE; attr->FileSystemAttributes = FILE_SUPPORTS_REMOTE_STORAGE;
if (superblock->link_support) if (superblock->link_support)
@ -147,14 +146,12 @@ static int handle_volume_attributes(
"case_insensitive %u, max component %u\n", "case_insensitive %u, max component %u\n",
superblock->case_preserving, superblock->case_insensitive, superblock->case_preserving, superblock->case_insensitive,
attr->MaximumComponentNameLength); attr->MaximumComponentNameLength);
return status;
} }
static int handle_volume(nfs41_upcall *upcall) static int handle_volume(nfs41_upcall *upcall)
{ {
volume_upcall_args *args = &upcall->args.volume; volume_upcall_args *args = &upcall->args.volume;
int status; int status = NO_ERROR;
switch (args->query) { switch (args->query) {
case FileFsSizeInformation: case FileFsSizeInformation:
@ -182,7 +179,7 @@ static int handle_volume(nfs41_upcall *upcall)
break; break;
case FileFsAttributeInformation: case FileFsAttributeInformation:
status = handle_volume_attributes(args, upcall->state_ref); handle_volume_attributes(args, upcall->state_ref);
break; break;
default: default: