DeNOVA Test

4. Module 수정 + test

telomere37 2021. 7. 17. 16:19

 

1. Write Path에 printk test

umount --> rmmod --> insmod --> mount 후 fprintf를 실행하였을 때 nova_dax_file_write가 실행이 되는지 확인해본다.

nova_dax_file_write에 printk로 디버깅 출력
dmesg를 통한 확인.

2. Dedup이라는 file operation을 새로 만들어본다. 

Dedup에 해당하는 함수
file operation <fs/nova/file.c>의 수정
<include/linux/fs.h> 에 Vfs에도 대응하는 operation추가


file operation "dedup"이 실행되었을 때 호출이 될 함수를 선언해 놓는다. 

정상 호출 결과