here's the comment area for today's blog found at
http://zabkat.com/blog/05Jun11-sparse-file-creation
blog: sparse is spartan
Moderators: fgagnon, nikos, Site Mods
-
Kilmatead
- Platinum Member

- Posts: 4842
- Joined: 2008 Sep 30, 06:52
- Location: Baile Átha Cliath
A little perusing of the voluminous SQL Server docs suggest it to be the NTFS equivalent of malloc().I don't know what real purpose they would serve — apparently they are designed for video and database use.

-
kunkel321
- Gold Member

- Posts: 534
- Joined: 2008 Jan 05, 18:58
-
Kilmatead
- Platinum Member

- Posts: 4842
- Joined: 2008 Sep 30, 06:52
- Location: Baile Átha Cliath
As a tangentially related investigation (i.e., something to do when bored off my arse), it appears the Sparse attribute is valued at:
FILE_ATTRIBUTE_SPARSE_FILE 512 (0x200)
...and yet does not appear in the x2 Attribute string. I take it you deemed it so pointless so as to just leave it as road-kill (as it's rather difficult for the user to modify themselves)? Much like FILE_ATTRIBUTE_TEMPORARY 256 (0x100), I suppose.
Which leads me to a more pertinent question (for my own nefarious needs): x2's Attribute display format is "RHSAD???J" - I'm assuming the missing letters are "O" (Offline), "C" (Compressed), and 'E' (Encrypted), but - um - what order would they appear in? Not having any of these files it's hard to test for. The x2 docs are a wee bit vague on the ingredients list, and I can't see any logical correlation between attribute letters and their positions, aside from Nikos' dyslexic humour.
Basically, what would a complete attribute string look like? (And yes, I do have a reason for wanting to know this, other than random curiosity.)
FILE_ATTRIBUTE_SPARSE_FILE 512 (0x200)
...and yet does not appear in the x2 Attribute string. I take it you deemed it so pointless so as to just leave it as road-kill (as it's rather difficult for the user to modify themselves)? Much like FILE_ATTRIBUTE_TEMPORARY 256 (0x100), I suppose.
Which leads me to a more pertinent question (for my own nefarious needs): x2's Attribute display format is "RHSAD???J" - I'm assuming the missing letters are "O" (Offline), "C" (Compressed), and 'E' (Encrypted), but - um - what order would they appear in? Not having any of these files it's hard to test for. The x2 docs are a wee bit vague on the ingredients list, and I can't see any logical correlation between attribute letters and their positions, aside from Nikos' dyslexic humour.
Basically, what would a complete attribute string look like? (And yes, I do have a reason for wanting to know this, other than random curiosity.)
-
nikos
- Site Admin

- Posts: 16344
- Joined: 2002 Feb 07, 15:57
- Location: UK
-
Kilmatead
- Platinum Member

- Posts: 4842
- Joined: 2008 Sep 30, 06:52
- Location: Baile Átha Cliath
-
John_Gray
- Member

- Posts: 12
- Joined: 2010 Aug 01, 16:00
Am I right in thinking that a TrueCrypt 'container' would be a good application for a sparse file, because you have to allocate the maximum size you want initially, even though it may only be a few percent full at any one time?
A backup would/should/might back up on the amount of space actually used in the sparse file, not the entire TrueCrypt container.
(I suspect that "it doesn't work that way", but it would have been a neat idea...)
A backup would/should/might back up on the amount of space actually used in the sparse file, not the entire TrueCrypt container.
(I suspect that "it doesn't work that way", but it would have been a neat idea...)
-
quietbritishjim
- Member

- Posts: 16
- Joined: 2004 Nov 16, 17:34
That is indeed how how TrueCrypt containers work, but only if you choose to make them dynamic, rather than static. See this TrueCrypt doc (scroll down to "dynamic"). It contains this warning though:
However, I have a large dynamic TrueCrypt archive and it works well for me. According to Explorer its size is "150 GB (161,061,273,600 bytes)" and its size on disk is "48.7 GB (52,324,859,904 bytes)".
One other thing not contained in that warning: I'm pretty sure that if you use and then zero back out some data in a sparse file, that data is not just re-marked as a sparse region, but instead continues to take up real space.WARNING: Performance of dynamic (sparse-file-hosted) TrueCrypt volumes is significantly worse than performance of regular volumes. Dynamic (sparse-file-hosted) TrueCrypt volumes are also less secure, because it is possible to tell which volume sectors are unused. Furthermore, if data is written to a dynamic volume when there is not enough free space in its host file system, the encrypted file system may get corrupted.
However, I have a large dynamic TrueCrypt archive and it works well for me. According to Explorer its size is "150 GB (161,061,273,600 bytes)" and its size on disk is "48.7 GB (52,324,859,904 bytes)".