当前位置:网站首页>Experience the latest version of erofs on Ubuntu
Experience the latest version of erofs on Ubuntu
2020-11-07 23:13:00 【Writing code has faith】
stay Ubuntu Experience the latest version of EROFS
at present Linux The kernel has iterated to 5.9 edition , meanwhile EORFS File system drivers also make feature and stability updates , Take a look at the new features experience .
Get ready Linux Kernel code , It's best to be consistent with the current release kernel
1. obtain Ubuntu Kernel version
$ uname -a
Linux ubuntu 5.9.6-050906-generic #202011051230 SMP Thu Nov 5 17:35:33 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
2. Download the latest EROFS Source code
$ mkdir ~/erofs && cd erofs
$ git clone https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git linux-erofs
$ git checkout -b erofs-dev remotes/erofs/dev
$ git bra|grep erofs
* erofs-dev
erofs-master
remotes/erofs/dev
remotes/erofs/dev-test
remotes/erofs/fixes
remotes/erofs/master
3. Get ready makefile
# SPDX-License-Identifier: GPL-2.0-only
EROFS_VERSION = "1.0"
ccflags-y += -DEROFS_VERSION=\"$(EROFS_VERSION)\"
CONFIG_EROFS_FS=y
CONFIG_EROFS_FS_DEBUG=y
CONFIG_EROFS_FS_XATTR=y
CONFIG_EROFS_FS_POSIX_ACL=y
CONFIG_EROFS_FS_SECURITY=y
CONFIG_EROFS_FS_ZIP=y
CONFIG_EROFS_FS_CLUSTER_PAGE_LIMIT=1
obj-m += erofs.o
erofs-objs := super.o inode.o data.o namei.o dir.o utils.o
erofs-$(CONFIG_EROFS_FS_XATTR) += xattr.o
erofs-$(CONFIG_EROFS_FS_ZIP) += decompressor.o zmap.o zdata.o
ifneq ($(KERNELRELEASE),)
# call from kernel build system
obj-m := erofs.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := ~/linux-erofs/fs/erofs
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
echo ${KERNELRELEASE}
endif
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.symvers modules.order
depend .depend dep:
$(CC) $(EXTRA_CFLAGS) -M *.c > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif
4. Compile and install erofs drive
$ cd ~/erofs/linux-erofs
$ make
# Install dependent modules
$ sudo modprobe libcrc32c
$ sudo insmod ~/erofs/linux-erofs/fs/erofs.ko
$ lsmod|grep erofs
erofs 33648640 0
libcrc32c 16384 1 erofs
5. Hang on the packed EROFS Mirror image test.img
$ sudo mount -t erofs -o loop test.img erofsdir;md5sum erofsdir/*.* srcdir/*.*|sort;sudo umount erofsdir
[sudo] password for XX:
0a78b672c059739eaa1dd01cc846f685 erofsdir/dmesg.log
0a78b672c059739eaa1dd01cc846f685 srcdir/dmesg.log
52efd0d1126cd0dbf0e6b28b2cf85c3f erofsdir/inline.txt
52efd0d1126cd0dbf0e6b28b2cf85c3f srcdir/inline.txt
72b3924faa8f5801e2966c69ddaa7d99 erofsdir/file.list
72b3924faa8f5801e2966c69ddaa7d99 srcdir/file.list
7558009b9427ba921ea05e68c35e98b2 erofsdir/config.c
7558009b9427ba921ea05e68c35e98b2 srcdir/config.c
aa5ae2a4d5d71e32357159d9b32a5c2c erofsdir/dd_unrandom.bin
aa5ae2a4d5d71e32357159d9b32a5c2c srcdir/dd_unrandom.bin
c0f56976ed5e0fcf331d30e8d74053bc erofsdir/file_002.txt
c0f56976ed5e0fcf331d30e8d74053bc srcdir/file_002.txt
f127e2ae77c615cd7391c5b4d1194d2c erofsdir/dd_unrandom2.bin
f127e2ae77c615cd7391c5b4d1194d2c srcdir/dd_unrandom2.bin
fdd480f87d40828ecc561cfa9e371a78 erofsdir/liberofs_la-cache.o
fdd480f87d40828ecc561cfa9e371a78 srcdir/liberofs_la-cache.o
版权声明
本文为[Writing code has faith]所创,转载请带上原文链接,感谢
边栏推荐
- Adobe media encoder / me 2021 software installation package (with installation tutorial)
- 使用jsDelivr加速你的网站
- 京淘项目day09
- 14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
- 来自不同行业领域的50多个对象检测数据集
- 看一遍就理解,图解单链表反转
- Get tree menu list
- Adobe Lightroom /Lr 2021软件安装包(附安装教程)
- C language I blog assignment 03
- 到底选openstack还是vmware?
猜你喜欢

WPF personal summary on drawing

Fortify漏洞之 Privacy Violation(隐私泄露)和 Null Dereference(空指针异常)

Git code submission operation, and git push prompt failed to push some refs'xxx '

来自不同行业领域的50多个对象检测数据集

QT hybrid Python development technology: Python introduction, hybrid process and demo

C++基础知识篇:C++ 基本语法
![[original] the influence of arm platform memory and cache on the real-time performance of xenomai](/img/cb/0395507ece572556b2bab373f013a5.jpg)
[original] the influence of arm platform memory and cache on the real-time performance of xenomai

Basic knowledge of C + +

C language I blog assignment 03

China Telecom announces 5g SA commercial scale in 2020
随机推荐
Thinkphp6中where条件中字段与字段比较条件的写法
Wanxin Finance
See once to understand, graphic single chain table inversion
一次公交卡被“盗刷”事件带来的思考
密码学-尚硅谷
Awk implements SQL like join operation
static+代码块+多态+异常
关于update操作并发问题
数据库基本操作
What kind of technical ability should a programmer who has worked for 1-3 years? How to improve?
Abnormal + Abstract
面部识别:攻击类型和反欺骗技术
CPP (3) what is cmake
UCGUI简介
【解决方案】分布式定时任务解决方案
2020-11-07:已知一个正整数数组,两个数相加等于N并且一定存在,如何找到两个数相乘最小的两个数?
Assembly function MCALL systemstack asmcgocal system call
到底选openstack还是vmware?
0.计算机简史
C / C + + Programming Notes: what are the advantages of C compared with other programming languages?