NVSL / linux-nova

NOVA is a log-structured file system designed for byte-addressable non-volatile memories, developed at the University of California, San Diego.
http://nvsl.ucsd.edu/index.php?path=projects/nova
Other
421 stars 118 forks source link

wprotect does not work #103

Open seekstar opened 3 years ago

seekstar commented 3 years ago

I remove nova_memunlock_inode(sb, pi, &irq_flags) and nova_memlock_inode(sb, pi, &irq_flags) around nova_update_inode(sb, inode, pi, &update, 1) in function do_nova_inplace_file_write, and run fio with wprotect enabled, expecting a kernel panic or something else:

mount -t NOVA -o init -o wprotect /dev/pmem0 /mnt/pmem
fio -filename=/mnt/pmem/test1 -fallocate=none -direct=1 -iodepth 1 -rw=write -ioengine=sync -bs=4K -thread -numjobs=1 -size=3G -name=randrw -group_reporting

But nothing happens, the command simply finishes successfully. Is there something I miss?