Android-x86 community geniuses,
I'm a file system developer and want to test my self-defined file system on android-x86. (I run pie-x86 on qemu).
In order to achieve my ultimate goal, I need to try to run f2fs instead of ext4 on my emulated device first.
Current implementation doesn't allow me to do so. I guess I need to: 1) add a mkfs.f2fs into the source code and 2) maybe change the fstab to indicate f2fs as my selected file system.
After googling I still can't find the right way to do it.
My first question:
Can anyone tells me where should I start from?
My second question:
When trying to figure out the physical layout of my emulated storage, I type the following commands:
x86_64:/ $ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 996M 4.4M 992M 1% /
/dev/loop0 1.7G 1.6G 136M 93% /system
/dev/block/sda1 15G 1.8G 12G 14% /data
tmpfs 996M 316K 996M 1% /dev
tmpfs 996M 0 996M 0% /mnt
none 996M 0 996M 0% /cache
/data/media 15G 1.8G 12G 14% /storage/emulated
It shows me that I have a loop0 device mounted on /system and a sda1 mounted on /data. Others are just ramdisks.
What surprises me is the loop0 device. I can't get any information about it.
`losetup -a` doesn't output anything.
I can't even find a loop0 under /dev
x86_64:/ $ ls /dev
__properties__ device-mapper lightnvm psaux tty10 tty22 tty34 tty46 tty58 ttyS3 vcsu7
ashmem dri loop-control ptmx tty11 tty23 tty35 tty47 tty59 tun vga_arbiter
binder event-log-tags mem pts tty12 tty24 tty36 tty48 tty6 uhid vndbinder
block fd memcg random tty13 tty25 tty37 tty49 tty60 uinput xt_qtaguid
cg2_bpf fscklogs memory_bandwidth rfkill tty14 tty26 tty38 tty5 tty61 urandom zero
console full msr0 rtc0 tty15 tty27 tty39 tty50 tty62 vcs
cpu0 fuse msr1 sg0 tty16 tty28 tty4 tty51 tty63 vcs1
cpu1 graphics msr2 sg1 tty17 tty29 tty40 tty52 tty7 vcs7
cpu2 hpet msr3 socket tty18 tty3 tty41 tty53 tty8 vcsa
cpu3 hwbinder network_latency stune tty19 tty30 tty42 tty54 tty9 vcsa1
cpu_dma_latency input network_throughput tty tty2 tty31 tty43 tty55 ttyS0 vcsa7
cpuctl kmsg null tty0 tty20 tty32 tty44 tty56 ttyS1 vcsu
cpuset kmsg_debug port tty1 tty21 tty33 tty45 tty57 ttyS2 vcsu1
Wierd, wierd and wierd! Any ideas about it?
Thank you :)