Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions common_service/fatfs/src/apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn fatfs_stat(fd: Fd) -> FatfsResult<Stat> {
let st_size = f
.stream_len()
.map_err(|e| FatfsError::HostIOErr(e.to_string()))? as Size;
Ok(Stat {
Ok(Stat {
st_dev: 0,
st_ino: 0,
st_nlink: 0,
Expand All @@ -83,7 +83,7 @@ pub fn fatfs_stat(fd: Fd) -> FatfsResult<Stat> {
tv_sec: 0,
tv_nsec: 0,
},
__unused: [0, 0, 0],
__unused: [0, 0, 0],
})
}

Expand All @@ -100,7 +100,7 @@ pub fn fatfs_open(p: &str, flags: OpenFlags) -> FatfsResult<Fd> {
} else {
root_dir.open_file(p)
}
.map_err(|e| FatfsError::HostIOErr(e.to_string()))?;
.map_err(|_e| FatfsError::Unknown)?;

let fd = {
let file = ManuallyDrop::new(Box::new(file));
Expand Down
170 changes: 170 additions & 0 deletions isol_config/long_chain_load_all.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"services": [
[
"mm",
"libmm.so"
],
[
"mmap_file_backend",
"libmmap_file_backend.so"
],
[
"socket",
"libsocket.so"
],
[
"time",
"libtime.so"
],
[
"fdtab",
"libfdtab.so"
],
[
"stdio",
"libstdio.so"
],
[
"fatfs",
"libfatfs.so"
]
],
"apps": [
[
"array_sum",
"libarray_sum.so"
],
[
"load_all",
"libload_all.so"
]
],
"groups": [
{
"list": [
"load_all"
],
"args": {}
},
{
"list": [
"array_sum"
],
"args": {
"n": "0"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "1"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "2"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "3"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "4"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "5"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "6"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "7"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "8"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "9"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "10"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "11"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "12"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "13"
}
},
{
"list": [
"array_sum"
],
"args": {
"n": "14"
}
}
]
}
Loading
Loading