MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / mount

Method mount

kernel/src/vfs.rs:35–40  ·  view source on GitHub ↗

Add a mount point to the VFS The path will have leading and trailing whitespace removed, and all trailing '/' characters removed. It is expected, though not technically required, for the path to start with '/'

(&mut self,
                 path: &str,
                 rendezvous: Arc<RwLock<Rendezvous>>)

Source from the content-addressed store, hash-verified

33 /// It is expected, though not technically required, for the
34 /// path to start with '/'
35 pub fn mount(&mut self,
36 path: &str,
37 rendezvous: Arc<RwLock<Rendezvous>>) {
38 let path = path.trim().trim_end_matches('/');
39 self.0.write().push((String::from(path), rendezvous));
40 }
41
42 /// Remove a mount point from the VFS
43 pub fn umount(&mut self,

Callers 3

mainFunction · 0.45
sys_execFunction · 0.45
sys_mountFunction · 0.45

Calls 2

pushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected