refactor: fix ext2 warnings
This commit is contained in:
parent
11f731bf0f
commit
b0aab12bf3
@ -98,7 +98,7 @@ impl Ext2Fs {
|
|||||||
|
|
||||||
inode.dtime = real_time().seconds as u32;
|
inode.dtime = real_time().seconds as u32;
|
||||||
|
|
||||||
self.write_inode(ino, &inode).await?;
|
self.write_inode(ino, inode).await?;
|
||||||
|
|
||||||
let inode_index = ino - 1;
|
let inode_index = ino - 1;
|
||||||
let group_index = inode_index / self.block_group_inode_count;
|
let group_index = inode_index / self.block_group_inode_count;
|
||||||
|
@ -10,7 +10,6 @@ use alloc::sync::Arc;
|
|||||||
use libk::{
|
use libk::{
|
||||||
block,
|
block,
|
||||||
error::Error,
|
error::Error,
|
||||||
time::real_time,
|
|
||||||
vfs::{
|
vfs::{
|
||||||
CommonImpl, DirectoryImpl, DirectoryOpenPosition, Filename, Metadata, Node, NodeFlags,
|
CommonImpl, DirectoryImpl, DirectoryOpenPosition, Filename, Metadata, Node, NodeFlags,
|
||||||
NodeRef,
|
NodeRef,
|
||||||
|
@ -16,7 +16,6 @@ use inode::{InodeAccess, InodeCache};
|
|||||||
use libk::{
|
use libk::{
|
||||||
device::block::{cache::DeviceMapper, BlockDevice},
|
device::block::{cache::DeviceMapper, BlockDevice},
|
||||||
error::Error,
|
error::Error,
|
||||||
time::real_time,
|
|
||||||
vfs::{Filesystem, FilesystemMountOption, NodeRef},
|
vfs::{Filesystem, FilesystemMountOption, NodeRef},
|
||||||
};
|
};
|
||||||
use libk_util::OneTimeInit;
|
use libk_util::OneTimeInit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user