Adding headers - changing the length of the data - runs into the
fundamental problem that length is reported by the file system to Cc/Mm
directly. Look in FastFat - the calls to CcSetFileSizes are those
calls.
The âproblemâ then is that this size is used to establish the size for
memory mapping as well. There is no easy way to âhideâ the presence of
this header.
The best solution Iâve ever found is rather challenging to implement -
your âfilterâ is really a layered file system driver and takes over
control of the cache (and Mm) handling of the file itself. Of course,
once you do that, you can do anything you want with the size of the data
(and it is SO tempting to compress the data!)
In our DMK product, we use our own file format (it is log-structured,
actually) to manage the state and presentation of the data; this allows
us to compress, encrypt, store ACLs, support multiple streams, reparse
points, EAs, etc. regardless of the underlying file system (it really is
pretty cool to see streams supported on FAT). All through a layered
file system.
If you donât add headers, actual encryption is manageable.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Looking forward to seeing you at the next OSR File Systems class in Los
Angeles, CA October 24-27, 2005.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Tuesday, September 20, 2005 8:56 AM
To: ntfsd redirect
Subject: [ntfsd] Headers againâŚ
My previous encryption driver worked without headers (and gave much
less PITA as you can imagine 
Those who have added headers - am I missing something in the
following required for adding a 4K header to a file:
- Changing allocation, valid data length and end of file during
queryinfo post op and setinfo preop
- Changing the EoF and AllocSize during directory listing
I know this has been discussed - but not one post in the archives
for âadding headerâ search gives anything concrete on this subject.
â
Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com