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

how to map NVMM region as readonly upon mount? #69

Closed fengyuleidian0615 closed 6 years ago

fengyuleidian0615 commented 6 years ago

Hi @Andiry

When I read through the NOVA: A Log-structured File System for Hybrid Volatile/Non-vloatile Main Memories Section 4.8 NVMM Protection,

"NOVA uses the same protection mechanism that PMFS does. Upon mount, the whole NVMM region is mapped as read-only"

I'm not sure which part of code implement this? is it NOVA specific or PMEM driver stuff, it would be good if you could point the location of code change :)

Thanks!

Andiry commented 6 years ago

That part is outside NOVA, implemented in nd_pmem.

Check this patch: https://lkml.org/lkml/2017/8/3/88

fengyuleidian0615 commented 6 years ago

Aha, that makes sense now. Thanks for your prompt reply.