NJB_Get_Disk_Usage3
Get total bytes and free bytes from njb
Usage
#include <sys/types.h> #include <libnjb.h>
extern int njb_error
int NJB_Get_Disk_Usage(njb_t *njb, off_t *btotal, off_t *bfree)
Library
libnjb
Overview
This function returns the total available and total free disk space on the NJB, in bytes. These values are placed into the memory locations pointed to by *btotaland *bfree, respectively.
Return values
NJB_Get_Disk_Usage returns 0 on success. The values pointed to by *btotaland *bfreehavetobe64-bitunsignedintegers. If an error occurred, -1 is returned and njb_error is set as follows:
EO_BADSTATUS
|
The NJB returned a non-zero status |
|---|---|
EO_USBCTL
|
An I/O failure occurred on the USB control pipe. |
Releases
Unchanged in 2 releases since Debian 3.1 (Sarge).