What is sparse file?

Answer Posted / vivek

A sparse file is a type of computer file that attempts to
use file system space more efficiently when the file itself
is mostly empty. This is achieved by not writing data to
disk when it has been allocated but not actually filled
with data. Instead, brief information about these empty
regions is stored, which takes up much less disk space.
These regions are only written to disk at their actual size
when data is written to them; the file system transparently
converts empty sections into blocks filled with zero bytes
when read at runtime. Most modern file systems support
sparse files, including most Unix variants and NTFS. Sparse
files are commonly used for disk images, database
snapshots, log files and in scientific applications.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write programs for String Reversal & Palindrome check

594


What are the types of type qualifiers in c?

646


What is the correct declaration of main?

675


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

652


What is the best way to comment out a section of code that contains comments?

776






Why do we need functions in c?

554


Is void a keyword in c?

572


How #define works?

613


What is a void * in c?

593


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

575


What are reserved words?

652


Which is better malloc or calloc?

645


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1011


What is the right way to use errno?

619


how can I convert a string to a number?

594