从ali云弹性Web托管迁移Typecho到云虚拟主机遇坑说明

ali云发来通知,弹性web托管2022.4.1下线,可以先免费提供云虚拟主机供替代,双啊,来移吧。本想着快点搞完,但是却忙中出错,看来还得静下心来理一理,保持个平常心:) 这里提下typecho(这个blog用的)迁移遇到的问题,主要涉及数据库,迁移步骤可以参考官方文档,这里就不写了。 备份说明 typecho的文章评论都在数据库里,管理员后台的备份就...

阅读全文

Read vfs_read() code

主要关注page cache部分,参考Linux Kernel 4.14: 407 ssize_t __vfs_read(struct file *file, char __user *buf, size_t count,408 loff_t *pos)409 {410 if (file->...

阅读全文

EROFS on-disk compact index 生成分析

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

阅读全文

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...

阅读全文

转:如何在EROFS上支持Android文件块映射

本文首先从Ext4认识Android文件块映射,然后从生成EROFS文件系统的三个部分(非压缩文件、压缩文件和尾端数据)分析如何生成block list文件。

阅读全文

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...

阅读全文

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, acce...

阅读全文

eMMC CMDQ 超时分析

先看HW架构 CQE: Command Queueing Engine,负责管理software和eMMC device的data传输。 首先CQE接收来自SW的task(via TDL和doorbell),接下来的command flows主要有三步: Step1. Queuing a Transaction(CMD44+CMD45) CQE发出CMD...

阅读全文

UFS Write Booster 分析

先来看看JEDEC有关WriteBooster(WB)的描述: TLC NAND比SLC NAND慢的原因就是TLC里面有更多的programming steps。ok,为了提高性能,那就把TLC NAND的一部分配置成SLC NAND不就行了。rt,WriteBooster特性由此而来,就是把这部分SLC NAND用作WriteBooster Buffer...

阅读全文