removal of tedious code

This commit is contained in:
Able 2022-02-08 02:06:24 -06:00
parent 8f7155dcff
commit 9451be8807

View file

@ -147,55 +147,6 @@ pub struct Superblock {
#[doc(hidden)] #[doc(hidden)]
_reserved: [u8; 788], _reserved: [u8; 788],
} }
/*
impl Debug for Superblock {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("Superblock")
.field("inodes_count", &self.inodes_count)
.field("blocks_count", &self.blocks_count)
.field("r_blocks_count", &self.r_blocks_count)
.field("free_blocks_count", &self.free_blocks_count)
.field("free_inodes_count", &self.free_inodes_count)
.field("first_data_block", &self.first_data_block)
.field("log_block_size", &self.log_block_size)
.field("log_frag_size", &self.log_frag_size)
.field("blocks_per_group", &self.blocks_per_group)
.field("frags_per_group", &self.frags_per_group)
.field("inodes_per_group", &self.inodes_per_group)
.field("mtime", &self.mtime)
.field("wtime", &self.wtime)
.field("mnt_count", &self.mnt_count)
.field("max_mnt_count", &self.max_mnt_count)
.field("magic", &self.magic)
.field("state", &self.state)
.field("errors", &self.errors)
.field("rev_minor", &self.rev_minor)
.field("lastcheck", &self.lastcheck)
.field("checkinterval", &self.checkinterval)
.field("creator_os", &self.creator_os)
.field("rev_major", &self.rev_major)
.field("block_uid", &self.block_uid)
.field("block_gid", &self.block_gid)
.field("first_inode", &self.first_inode)
.field("inode_size", &self.inode_size)
.field("block_group", &self.block_group)
.field("features_opt", &self.features_opt)
.field("features_req", &self.features_req)
.field("features_ronly", &self.features_ronly)
.field("fs_id", &self.fs_id)
.field("volume_name", &self.volume_name)
.field("last_mnt_path", &self.last_mnt_path.as_ref())
.field("compression", &self.compression)
.field("prealloc_blocks_files", &self.prealloc_blocks_files)
.field("prealloc_blocks_dirs", &self.prealloc_blocks_dirs)
.field("journal_id", &self.journal_id)
.field("journal_inode", &self.journal_inode)
.field("journal_dev", &self.journal_dev)
.field("journal_orphan_head", &self.journal_orphan_head)
.finish()
}
}
*/
impl Superblock { impl Superblock {
/// Discover the location of the superblock in the given block device. /// Discover the location of the superblock in the given block device.
pub unsafe fn find<S: SectorSize, V: Volume<u8, S>>( pub unsafe fn find<S: SectorSize, V: Volume<u8, S>>(