/// Create an FsContext for use in testing.
///
/// Open "/pkg" and returns an FsContext rooted in that directory.
Create an FsContext for use in testing.
Open "/pkg" and returns an FsContext rooted in that directory.
Create an FsContext for use in testing . Open " / pkg " and returns an FsContext rooted in that directory .
fn create_pkgfs() -> Arc<FsContext> {
    let root =
        directory::open_in_namespace("/pkg", fio::OPEN_RIGHT_READABLE | fio::OPEN_RIGHT_EXECUTABLE)
            .expect("failed to open /pkg");
    return FsContext::new(
        RemoteFs::new(
            root.into_channel().unwrap().into_zx_channel(),
            fio::OPEN_RIGHT_READABLE | fio::OPEN_RIGHT_EXECUTABLE,
        )
        .unwrap(),
    );
}
fn create_pkgfs ( ) -> Arc < FsContext > { let root = directory :: open_in_namespace ( " " , fio :: OPEN_RIGHT_READABLE | fio :: OPEN_RIGHT_EXECUTABLE ) . expect ( " " ) ; return FsContext :: new ( RemoteFs :: new ( root . into_channel ( ) . unwrap ( ) . into_zx_channel ( ) , fio :: OPEN_RIGHT_READABLE | fio :: OPEN_RIGHT_EXECUTABLE , ) . unwrap ( ) , ) ; }
Create an FsContext for use in testing.
Create an FsContext for use in testing .