This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computer_science:what_is_sparse_files_explained_ntfs_features [2015/09/17 00:04] cosmo |
computer_science:what_is_sparse_files_explained_ntfs_features [2015/09/23 01:10] (current) cosmo |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | **Introduction** | + | {{: |
In the year 2000, Microsoft introduced the support of sparse files with the release of New Technology File Systems (NTFS) Version 3.0. Operating systems based on the Windows NT family (starting from Windows 2000 and subsequent versions) are able to make use of this file management system. In this article we will look at what sparse files are and how they are used. | In the year 2000, Microsoft introduced the support of sparse files with the release of New Technology File Systems (NTFS) Version 3.0. Operating systems based on the Windows NT family (starting from Windows 2000 and subsequent versions) are able to make use of this file management system. In this article we will look at what sparse files are and how they are used. | ||
Line 19: | Line 19: | ||
Besides sparse files, NTFS also includes built-in functionality to compress files. Both tools are known for their space saving advantages on the disk volume, but they achieve that goal differently. The main disadvantage with using file compression is that it may degrade performance in a system while reading/ | Besides sparse files, NTFS also includes built-in functionality to compress files. Both tools are known for their space saving advantages on the disk volume, but they achieve that goal differently. The main disadvantage with using file compression is that it may degrade performance in a system while reading/ | ||
- | {{: | + | {{: |
+ | |||
+ | **Advantage and Disadvantage of Sparse Files** | ||
+ | |||
+ | The biggest advantage with sparse files are that a user can create large-sized files that occupy very little storage space. Storage space is allocated automatically as data is written onto it. Large sparse files are created in a relatively shorter time as the file system does not need to pre-allocate disk space to write the zeros. | ||
+ | |||
+ | The benefits of sparse files is limited to applications which support them. If a program does not have the ability to recognize or utilize sparse files, then it would save a sparse file in its original, uncompressed state, resulting in no advantage. Users need to be careful in such situations as a sparse file that is only a few megabytes in size would suddenly swell to several gigabytes when non-supported applications copy them to the Destination. | ||
+ | |||
+ | Users can’t copy or create a sparse file if its nominal size is larger than the amount of free space (or quota size limits imposed on user accounts) available. For example, if the original size of a sparse file (with all the zero bytes) is 500MB, and there is a quota limit of 400MB on the user account used to create that sparse file, it would result in a quota-exceeded error even though the actual disk space occupied by the sparse file is only 50MB on the drive. | ||
+ | |||
+ | Hard disks that store sparse files are also prone to disk fragmentation, | ||
+ | |||
+ | **Backing up / restoring sparse files through Backup Applications** | ||
+ | |||
+ | Some backup programs may not have the function to properly recognize, backup and/or restore sparse files. In such cases, a sparse file backed up by such applications will take up a lot more space on the Destination. Similarly, using a program to restore a properly backed up sparse file will cause the restored file to be stored in its original, expanded size. If the drive that the file is being restored to does not have enough space to contain the full file, it will result in “disk-full” errors. | ||
+ | |||
+ | The Backup and Synchronization commercial programs, SyncBackSE and SyncBackPro, | ||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | Sparse file copying is not supported in SyncBackFree, | ||
+ | |||
+ | **Conclusion** | ||
+ | |||
+ | The use of sparse files introduced in the NTFS file system comes with benefits and drawbacks which users may want to consider before implementation. Being aware of the issues sparse files can lead to will help you to avoid potential problems in the future. |