/** * Filesystem usage statistics. In the case of success the result is stored in the given information structure. * * @param inf Information structure where resulting data will be stored * @param object Identifies requested filesystem - either file, directory, device or mountpoint * @return TRUE if informations were succesfully read otherwise FALSE */ int filesystem_usage(Info_T inf, char *object) { int rv; ASSERT(inf); ASSERT(object); if(!device_path(inf, object)) return FALSE; inf->priv.filesystem._flags = inf->priv.filesystem.flags; rv = filesystem_usage_sysdep(inf); FREE(inf->priv.filesystem.mntpath); return rv; }
/** * Filesystem usage statistics. In the case of success result is stored in * given information structure. * * @param inf Information structure where resulting data will be stored * @param object Identifies requested filesystem - either file, directory, * block special device or mountpoint * @return TRUE if informations were succesfully read otherwise FALSE */ int filesystem_usage(Info_T inf, char *object) { ASSERT(inf); ASSERT(object); if(!device_path(inf, object)) { return FALSE; } /* save the previous filesystem flags */ inf->_flags= inf->flags; return filesystem_usage_sysdep(inf); }