make update_global
and update_inode
private
This commit is contained in:
parent
95533395d9
commit
d1905db917
|
@ -55,7 +55,8 @@ where
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_global(&mut self) -> Result<(), Error> {
|
#[allow(dead_code)]
|
||||||
|
fn update_global(&mut self) -> Result<(), Error> {
|
||||||
// superblock
|
// superblock
|
||||||
{
|
{
|
||||||
let slice = BufferSlice::from_cast(
|
let slice = BufferSlice::from_cast(
|
||||||
|
@ -78,7 +79,8 @@ where
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_inode(
|
#[allow(dead_code)]
|
||||||
|
fn update_inode(
|
||||||
&mut self,
|
&mut self,
|
||||||
&(ref inode, offset): &(Inode, usize),
|
&(ref inode, offset): &(Inode, usize),
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
@ -124,6 +126,7 @@ where
|
||||||
&self.superblock.inner
|
&self.superblock.inner
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
fn superblock_mut(&mut self) -> &mut Superblock {
|
fn superblock_mut(&mut self) -> &mut Superblock {
|
||||||
&mut self.superblock.inner
|
&mut self.superblock.inner
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue