Search

'IT/시스템프로그래밍'에 해당되는 글 12건

  1. 2012.11.07 스파스 파일 관련 정보(Sparse File)
  2. 2012.11.07 Get NtSystemInfo in User Land
반응형

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=&currentPage=1&listtype=0

 

프로그램적으로 스파스 파일 생성방법

http://www.benjaminlog.com/entry/sparse-file

 

fsutil 사용법

http://hosts.tistory.com/206

 

 

http://superuser.com/questions/314310/how-to-create-1g-zeroed-sparse-file-in-windows



반응형

Get NtSystemInfo in User Land

IT/시스템프로그래밍 2012. 11. 7. 09:31 Posted by Imtraveller
반응형

Get NtSystemInfo in User Land

 

- 각종 OPen Handle정보(file, event....)

- 로드한 모듈 정보

- Window 정보

- Process and Thread

 

Examine Information on Windows NT System Level Primitives

http://www.codeguru.com/cpp/w-p/system/processesmodules/article.php/c2827/Examine-Information-on-Windows-NT-System-Level-Primitives.htm

 

 

ntsysteminfo.zip



반응형