volume: daemon handles new generic volume size upcall

added FS_INFORMATION_CLASS, FILE_FS_SIZE_INFORMATION, FILE_FS_FULL_SIZE_INFORMATION to from_kernel.h
moved get_volume_size_info() and byte->unit conversion up to the daemon

Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
Casey Bodley 2010-10-11 16:11:27 -04:00
parent b9e8c7f8b2
commit c13ed30b9a
3 changed files with 104 additions and 17 deletions

View file

@ -25,6 +25,7 @@
#define __NFS41_DAEMON_UPCALL_H__
#include "nfs41_ops.h"
#include "from_kernel.h"
/* structures for upcall arguments */
@ -134,9 +135,12 @@ typedef struct __readdir_upcall_args {
typedef struct __volume_upcall_args {
nfs41_root *root;
ULONGLONG total;
ULONGLONG user;
ULONGLONG avail;
FS_INFORMATION_CLASS query;
int len;
union {
FILE_FS_SIZE_INFORMATION size;
FILE_FS_FULL_SIZE_INFORMATION fullsize;
} info;
} volume_upcall_args;
typedef union __upcall_args {