emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Have ___sys_statfs64 return real values when the FS supports it

Open jeroenpf opened this issue 1 year ago • 1 comments

Version of emscripten/emsdk: 3.1.61

The ___syscall_statfs64 function currently returns hardcoded values while some filesystems could potentially return more accurate stats. For example, NODEFS could leverage the Node statfs filesystem function to return actual stats for a given mount point.

Is this something worth considering or are there any problems with such an approach?

jeroenpf avatar Sep 23 '24 11:09 jeroenpf

This sounds reasonable to me. Would you have time to send a PR perhaps?

sbc100 avatar Sep 23 '24 19:09 sbc100