Linux API/linux2024. 2. 15. 18:13

장점일수도 있고 위험요소일수도 있는 부분 같은데

Btrfs 에서 파일을 복사하면 CoW 로 작동하게 된다.

물론 inode도 다르고 전혀 다른 파일이지만 수정 하기 전까지는 공간을 차지 하지 않는데

수정하는 순간 대용량 파일이라면 갑자기 용량을 먹어 버리는데

전체 스토리지를 넘길 경우에는 어떻게 작동하려나?

 

해당 기능을 끄면 checksum도 끈다는 먼가 무시무시한 경고가 보인다.

Disabling CoW
Warning: Disabling CoW in Btrfs also disables checksums. Btrfs will not be able to detect corrupted nodatacow files. When combined with RAID 1, power outages or other sources of corruption can cause the data to become out of sync.
To disable copy-on-write for newly created files in a mounted subvolume, use the nodatacow mount option. This will only affect newly created files. Copy-on-write will still happen for existing files. The nodatacow option also disables compression. See btrfs(5) for details.

[링크 : https://wiki.archlinux.org/title/btrfs]

'Linux API > linux' 카테고리의 다른 글

usb hid, hidraw  (0) 2024.03.11
linux 멀티터치 프로토콜  (0) 2024.03.08
statvfs() 의 f_bavail과 f_bfree 차이  (0) 2024.02.15
corrupted size vs. prev_size 에러.. part2  (0) 2023.12.15
리눅스 커널 6.6.6 릴리즈  (0) 2023.12.13
Posted by 구차니