fsck
-
Consistency / FSCK (File System Checker)운영체제 2024. 6. 15. 14:30
비휘발성 -> 전원을 꺼도 데이터가 남아있음일관성을 유지시킬 필요가 있음 Consistency Definition의미 있는 상태에서, 또다른 의미있는 상태로 바뀌도록 보장하는 것그 방법 중 FSCK, Journaling 이 있음그 외에도 소프트 업데이트, COW, Integrity checking, Optimistic 등이 있음 구체적인 예시파일 사이즈가 4KB라 가정어떤 파일에 4KB를 추가로 appending 한다고 하면데이터 비트맵, inode 블록, 데이터 블록 총 세 번의 write가 필요함 이때, 지연 쓰기를 한다고 하면갑자기 전원이 꺼지거나 시스템이 크래시되면 몇몇 라이트는 써지지 않을 수 있음1. 데이터 블록만 써짐- 문제 없음 2. 데이터 비트맵만 써짐- 공간 낭비 3. inode만 써짐..