2021年

EROFS on-disk compact index 生成分析

compact index是EROFS默认使用的压缩布局,内核提交描述如下: staging: erofs: add compacted ondisk compression indexes This patch introduces new compacted compression indexes. In contract to legacy...阅读全文

qemu和host间传输文件方法之挂载

我们有时希望传输文件到qemu里,那如何做了?官方给的答复:Simple: Treat the virtual machine as if it was a real machine andtransfer files to and from it.More to the point, the following are the most common methods:A...阅读全文

Read squashfs readpage() code

内核参考5.x:const struct address_space_operations squashfs_aops = { .readpage = squashfs_readpage };static int squashfs_readpage(struct file *file, struct page *page) { ... ...阅读全文

e-Paper Weather Station

I always want to use the 7.5 e-Paper(i already have) to display weather forecast instead of my previous solution displayed on LCD. You know, the old one is not beautiful for me any more s...阅读全文

erofs-utils mkfs 概览

参考erofs-utils 1.2.1, 入口是erofs_mkfs_build_tree(), 不关注xattr/extent, 看之前我们再了解下inode:Inodes store information about files and directories (folders), such as file ownership, access mode (read,...阅读全文