Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wprotect does not work #103

Open
seekstar opened this issue May 17, 2021 · 0 comments
Open

wprotect does not work #103

seekstar opened this issue May 17, 2021 · 0 comments

Comments

@seekstar
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant