This commit is contained in:
Xinyi Yu 2026-01-26 07:54:35 +00:00
parent 2054abb926
commit cf0c83f386
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,8 @@ use crate::{
},
prelude::*,
process::signal::{PollHandle, Pollable},
thread::kernel_thread::ThreadOptions, util::ioctl::{RawIoctl, dispatch_ioctl},
thread::kernel_thread::ThreadOptions,
util::ioctl::{RawIoctl, dispatch_ioctl},
};
pub(super) fn init_in_first_kthread() {
@ -47,7 +48,6 @@ pub(super) fn init_in_first_process(path_resolver: &PathResolver) -> Result<()>
Ok(())
}
mod ioctl_defs {
use crate::util::ioctl::{OutData, ioc};
@ -137,7 +137,7 @@ impl FileIo for OpenBlockFile {
}
fn ioctl(&self, raw_ioctl: RawIoctl) -> Result<i32> {
use ioctl_defs::*;
use ioctl_defs::*;
dispatch_ioctl!(match raw_ioctl {
cmd @ BlkGetSize64 => {
let size = (self.0.metadata().nr_sectors * SECTOR_SIZE) as u64;