/* * Calculate the available space of the filesystem, excluding space reserved * for non-HDFS and space reserved for RBW * * @return the available number of bytes left in this filesystem. May be zero. */ /// <exception cref="System.IO.IOException"/> public override long GetAvailable() { long remaining = GetCapacity() - GetDfsUsed() - reservedForRbw.Get(); long available = usage.GetAvailable() - reserved - reservedForRbw.Get(); if (remaining > available) { remaining = available; } return((remaining > 0) ? remaining : 0); }