If it is question of the size of things on the underlying filesystem,
try writing to the fourth block when the third is empty, and see if the
third gets overwritten.
~Eric
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Friday, December 14, 2007 11:51 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] sparse file problem…
I don’t see what you think is a problem.
The problem I then see is that the system overwrites the first block of
my
sparse file, and fills it with 0…
Who cares? If it remains unallocated, reads will return zeroes. If
it’s allocated and zero filled, reads will return zeroes.
Also, I only see this on one of my machines, which is 2003 server R2
sp2…
Different cluster size?
You seem to be expecting that NTFS will use a certain “block” size for
its sparse files. But that is dependent on the volume cluster size and
the design decisions made by the NTFS devs. You shouldn’t care.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Friday, December 14, 2007 9:32 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] sparse file problem…
Hi all,
I’m currently having a strange problem with a sparse file.
I don’t know if this is normal or not, but here is my problem:
1- I create an empty sparse file of 200KB.
2- I write 200 bytes to the second block of the sparse file (64KB + some
offset)
The problem I then see is that the system overwrites the first block of
my sparse file, and fills it with 0…
If I write to the third block, I don’t see this problem, but every time
I do this on the second block, the first block is 0 filled…
Also, I only see this on one of my machines, which is 2003 server R2
sp2…
Although I’ve only tested it on a couple of machines, it is weird to me
that this behaviour is not present on all my machines, and that this is
happening!
Any insights?
Thanks!
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars
You are currently subscribed to ntfsd as: xxxxx@privtek.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars
You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com