Libsquash v0.2.0
[zh] 实现了虚拟文件描述符表(vfd, virtual file descriptor),虚拟文件描述符与正常磁盘文件的文件描述符 (fd) 可以和平共处,这使得上层运行时可以无缝接入对内存文件系统的访问,而不需要原有代码的调用风格。新开发了以下 API 实现,实现与 open、lseek、read 等系统调用的风格相同的调用接口。为基础 API、stat 系列 API、虚拟文件描述符表系列 API 全部编写了测试。
[en] Implemented the virutal file descriptors and the following new API's:
- squash_stat(error, fs, path, buf)
- squash_fstat(error, fs, vfd, buf)
- squash_open(error, fs, path)
- squash_close(error, vfd)
- squash_read(error, vfd, buf, nbyte)
- squash_lseek(error, vfd, offset, whence)