mirror of
https://github.com/obhq/obliteration.git
synced 2024-05-31 19:17:40 -04:00
Fixes library mount (#791)
This commit is contained in:
parent
01c1a5d20e
commit
44e79e22fa
|
@ -152,7 +152,7 @@ impl crate::fs::VnodeBackend for VnodeBackend {
|
|||
let dirent = entries
|
||||
.iter()
|
||||
.find(|dirent| dirent.name() == name)
|
||||
.ok_or_else(|| LookupError::NoParent)?;
|
||||
.ok_or(LookupError::NotFound)?;
|
||||
|
||||
let vnode = self
|
||||
.tmpfs
|
||||
|
@ -237,7 +237,7 @@ pub enum LookupError {
|
|||
|
||||
#[error("tmpfs node not found")]
|
||||
#[errno(ENOENT)]
|
||||
NoParent,
|
||||
NotFound,
|
||||
|
||||
#[error("failed to alloc vnode")]
|
||||
FailedToAllocVnode(#[from] AllocVnodeError),
|
||||
|
|
|
@ -286,7 +286,7 @@ fn run() -> Result<(), KernelError> {
|
|||
}
|
||||
|
||||
// TODO: Check permission of /mnt/sandbox/CUSAXXXXX_000/<SYSTEM_PATH>/common/lib on the PS4.
|
||||
let lib_path = system_path.join("lib").unwrap();
|
||||
let lib_path = common_path.join("lib").unwrap();
|
||||
|
||||
if let Err(e) = fs.mkdir(&lib_path, 0o555, None) {
|
||||
return Err(KernelError::CreateDirectoryFailed(lib_path, e));
|
||||
|
|
Loading…
Reference in a new issue