프로그램 사용/kvm(virt-manager)

qcow2 파일크기의 오류?

구차니 2019. 2. 12. 12:55

df -h와

ls -alh 의 용량이 서로 다르게 나오는 경우가 있어서 찾아보는데..


du는 실제 데이터가 있는 크기만 보는건가..

그렇게 따지면.. mount도 실 데이터의 크기만 보는거고

ls -alh 이나 tar로 압축되는 용량과 서로 다르게 카운트 된다는 의미일려나?


This is a feature that saves actual hard disk space when huge files that are mostly zeroes are stored.  ls will return the apparent file size, but du will show the apparent size of the file minus the size of the holes in the file (which is how much space the file actually uses on the disk). 

[링크 : https://unix.stackexchange.com/questions/435499/qcow2-actual-size]

[링크 : https://askubuntu.com/questions/321465/ambiguity-using-ls-l-and-file-commands-on-a-qcow-file]



+

내용은 나중에 봐야겠다...

[링크 : https://unix.stackexchange.com/questions/406526/du-df-and-ls-reporting-different-disk-usage]

[링크 : https://www.lisenet.com/2014/so-what-is-the-size-of-that-file/]