Windows 2K이상에서 지원하는 파일 포맷이다.
파일을 생성할 때 전체의 크기를 할당하지 않고 실제 데이터가 존재하는 영역만 생성하고 파일에 정보가 추가되면 그때 파일을 확장하는 형태로 작성된다.
파일의 실제 disk에서 차지하는 공간을 효율적으로 지정할 수 있다.
실제 파일에 써질때 블럭이 할당되므로 디스크를 효율적으로 사용 할 수 있다. 다만 파일에 실제로 기록될때에 disk에 위치가 기록되는 것이 다르다. 어느위치에 기록될지는 실제 기록하는 시점에서 결정되는것이다.
- fsutil.exe를 사용하여 생성
ex) fsutil file createnew FileDisk.dat 10240000000
fsutil Sparse SetFlag FileDisk.dat
fsutil Sparse SetRange FileDisk.dat 0 10240000000
ex2) FSUtil File CreateNew temp 0x100000
FSUtil Sparse SetFlag temp
FSUtil Sparse SetRange temp 0 0x100000
10Gbytes의 sparse 파일 생성
관련 URL
http://blog.naver.com/PostView.nhn?blogId=kyuniitale&logNo=40038408049&parentCategoryNo=55&viewDate=¤tPage=1&listtype=0
프로그램적으로 스파스 파일 생성방법
http://www.benjaminlog.com/entry/sparse-file
fsutil 사용법
http://superuser.com/questions/314310/how-to-create-1g-zeroed-sparse-file-in-windows
'IT > 시스템프로그래밍' 카테고리의 다른 글
MAPI API관련 오류- email~~ (0) | 2013.03.06 |
---|---|
LocalPath To UNCPath and vice versa (0) | 2013.03.06 |
windows 8 integrity에 따른 공유메모리 사용문제 (0) | 2013.01.03 |
Registry Change notification function in win32 AP (0) | 2012.12.18 |
Get NtSystemInfo in User Land (0) | 2012.11.07 |