NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

rhpot1991's avatar
Mar 08, 2021
Solved

Enable Bitrot on Files: MV or CP?

So I want to make sure that bitrot protection is enabled on my files, I don't recall if I had it enabled on my shares before files were placed there.  According to the documentation you can create a ...
  • rn_enthusiast's avatar
    rn_enthusiast
    Mar 08, 2021

    You can use "lsattr" to check if a file has CoW enabled or not.

     

    Here my txt file does not have CoW enabled, denoted by the "C" in the end.

    root@Databak:~# lsattr /data/Data-dump/MyFile_NoCoW.txt
    ---------------C /data/Data-dump/MyFile_NoCoW.txt

    Here is what a file looks like, that has CoW enabled.

    root@Databak:~# lsattr /data/Data-dump/MyFile_CoW.txt
    ---------------- /data/Data-dump/MyFile_CoW.txt

    I don't think the "mv" command is enough to trigger CoW on a file that has previously been marked for No CoW - due to reasons that StephenB mentioned. I think you need to re-create the file - i.e. "cp"

     

    But you can check on the files you moved :)

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More