1 /* Part of libhgfs - (c) 2009, D.C. van Moolenbroek */
5 /*===========================================================================*
7 *===========================================================================*/
8 int hgfs_queryvol(char *path
, u64_t
*free
, u64_t
*total
)
10 /* Retrieve information about available and total volume space associated with
16 RPC_REQUEST(HGFS_REQ_QUERYVOL
);
20 /* It appears that this call always fails with EACCES ("permission denied")
21 * on read-only folders. As far as I can tell, this is a VMware bug.
23 if ((r
= rpc_query()) != OK
)
28 *free
= make64(lo
, hi
);
32 *total
= make64(lo
, hi
);