@@ -14,13 +14,13 @@ use crate::{
1414mod by_fd;
1515mod by_path;
1616mod cmdval_copy;
17- mod fstat;
18- mod getdents;
17+ // mod fstat;
18+ // mod getdents;
1919
2020use by_fd:: { close, lseek, lseek_v1, read, read_v1, write, write_v1} ;
21- use by_path:: { mkdir , open, unlink} ;
22- use fstat:: { fstat, stat} ;
23- use getdents:: getdents;
21+ use by_path:: { open, unlink} ;
22+ // use fstat::{fstat, stat};
23+ // use getdents::getdents;
2424
2525/// `addr` is the address of the hypercall parameter in the guest's memory space. `data` is the
2626/// parameter that was sent to that address by the guest.
@@ -95,10 +95,6 @@ pub unsafe fn address_to_hypercall_v2(
9595 HypercallAddress :: SerialReadBuffer => Hypercall :: SerialReadBuffer ( get_data ! ( ) ) ,
9696 HypercallAddress :: SerialWriteBuffer => Hypercall :: SerialWriteBuffer ( get_data ! ( ) ) ,
9797 HypercallAddress :: SerialWriteByte => Hypercall :: SerialWriteByte ( data. as_u64 ( ) as u8 ) ,
98- HypercallAddress :: Getdents => Hypercall :: Getdents ( get_data ! ( ) ) ,
99- HypercallAddress :: FileStat => Hypercall :: FileStat ( get_data ! ( ) ) ,
100- HypercallAddress :: FileFstat => Hypercall :: FileFstat ( get_data ! ( ) ) ,
101- HypercallAddress :: Mkdir => Hypercall :: Mkdir ( get_data ! ( ) ) ,
10298 _ => return None ,
10399 } )
104100}
@@ -136,12 +132,6 @@ pub fn handle_hypercall_v2<N: NetworkBackend>(
136132 v2:: Hypercall :: FileUnlink ( sysunlink) => {
137133 unlink ( & peripherals. mem , sysunlink, & mut file_mapping ( ) )
138134 }
139- v2:: Hypercall :: Getdents ( sysgetdents) => {
140- getdents ( & peripherals. mem , sysgetdents, & mut file_mapping ( ) )
141- }
142- v2:: Hypercall :: FileStat ( sysstat) => stat ( & peripherals. mem , sysstat, & file_mapping ( ) ) ,
143- v2:: Hypercall :: FileFstat ( sysfstat) => fstat ( & peripherals. mem , sysfstat, & file_mapping ( ) ) ,
144- v2:: Hypercall :: Mkdir ( sysmkdir) => mkdir ( & peripherals. mem , sysmkdir, & mut file_mapping ( ) ) ,
145135 v2:: Hypercall :: SerialWriteByte ( buf) => peripherals
146136 . serial
147137 . output ( & [ buf] )
0 commit comments