From 2a323c549554cbe028efd92be55104460388c742 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 25 Dec 2016 00:58:50 +0100 Subject: superblock: Rename extfs_superblock to superblock --- include/fs/detail/superblock.hpp | 4 ++-- include/fs/extfs.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/fs') diff --git a/include/fs/detail/superblock.hpp b/include/fs/detail/superblock.hpp index f86fe3d..dbacd48 100644 --- a/include/fs/detail/superblock.hpp +++ b/include/fs/detail/superblock.hpp @@ -14,7 +14,7 @@ namespace fs::detail * * @since 1.0 */ - struct extfs_superblock + struct superblock { u32 const inodes_count{}; ///< The total number of inodes in the file system u32 const blocks_count{}; ///< The total number of blocks in the file system @@ -66,7 +66,7 @@ namespace fs::detail u08_arr<760> const _reserved1{}; ///< Padding }; - static_assert(sizeof(extfs_superblock) == 1024, "An ext* super block must have an exact size of 1024 byte!"); + static_assert(sizeof(superblock) == 1024, "An ext2/3/4 super block must have an exact size of 1024 bytes!"); } diff --git a/include/fs/extfs.hpp b/include/fs/extfs.hpp index 545a840..b06b9fb 100644 --- a/include/fs/extfs.hpp +++ b/include/fs/extfs.hpp @@ -78,7 +78,7 @@ namespace fs bool has_label() const; private: - detail::extfs_superblock m_primarySuperblock{}; + detail::superblock m_primarySuperblock{}; std::fstream m_stream{}; }; -- cgit v1.2.3