hdfsGetCapacity()
Supported by libMapRClient
for hadoop-2.x
Returns the capacity in bytes of the connected file system.
Signature
tOffset hdfsGetCapacity(hdfsFS fs)
Parameters
Parameter | Description |
---|---|
fs | The file system handle. Obtain this handle by calling one of the
hdfsConnect() APIs. |
Return Value
Returns the capacity in bytes of the connected file system, -1 on error.
Check errno for error codes and meanings.
errno can be set to EINVAL in case of error.