fileinfo: implement os_fileinfo_blocksize

This commit is contained in:
Stefan Hoffmann
2014-08-09 14:59:52 +02:00
parent e85fe0957d
commit 9ee1c3604c
3 changed files with 35 additions and 4 deletions

View File

@@ -412,6 +412,15 @@ uint64_t os_fileinfo_hardlinks(const FileInfo *file_info)
return file_info->stat.st_nlink;
}
/// Get the blocksize from a `FileInfo`.
///
/// @return blocksize in bytes.
uint64_t os_fileinfo_blocksize(const FileInfo *file_info)
FUNC_ATTR_NONNULL_ALL
{
return file_info->stat.st_blksize;
}
/// Get the `FileID` for a given path
///
/// @param path Path to the file.