• S
    md/r5cache: sysfs entry journal_mode · 2c7da14b
    Song Liu 提交于
    With write cache, journal_mode is the knob to switch between
    write-back and write-through.
    
    Below is an example:
    
    root@virt-test:~/# cat /sys/block/md0/md/journal_mode
    [write-through] write-back
    root@virt-test:~/# echo write-back > /sys/block/md0/md/journal_mode
    root@virt-test:~/# cat /sys/block/md0/md/journal_mode
    write-through [write-back]
    Signed-off-by: NSong Liu <songliubraving@fb.com>
    Signed-off-by: NShaohua Li <shli@fb.com>
    2c7da14b
raid5.c 226.9 KB