Re: minor flaws in handling of streams and tunneling



Which of 3 date values are preserved when you override a file?

"Atlan" <atlan@xxxxxxxxxxxx> wrote in message
news:1158914531.580579.69540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have discovered two minor flaws in NTFS that I would like to discuss:

Flaw 1:
-------------
In NTFS every file can have streams. Lets take the stream
"\005SummaryInformation" which is used to save the Summary Information
visible in the properties of a file.

If you add this stream by entering a comment in the properties of the
file the modification date of the file changes. Every further
modification to the summary stream will change the modification date
too.

But if you simply delete the associated stream with DeleteFile the
modification date is not changed to reflect this operation:

DeleteFileW(L"c:\\file.txt:\005SummaryInformation");

I have expected that the modification date of a file changes when you
delete a stream.


Flaw 2:
-------------
NTFS Tunneling preserves the date values of files when you replace
older files with new files. This behaviour is necessary for backward
compatibility and for certain file handling procedures. You can control
how long the date values will be preserved by manipulating the registry
value "MaximumTunnelEntryAgeInSeconds".

In addition you can disable Tunneling by setting
"MaximumTunnelEntries=0". But it is not disabled in a way that I have
expected. Here are two scenarios I tried out after disabling Tunneling
(Computer was restarted):

Scenario I:
a) file Z exists in folder F
b) delete file Z from folder F
c) copy file named Z to Folder F
=> date values are not preserved, behaves as expected

Scenario II:
a) file Z exists in folder F
b) replace file Z in folder F with newer file named Z
=> date values of older file are preserved, Tunneling still active,
unexpected behaviour


Best regards,
Holger



.



Relevant Pages

  • NTFS: minor flaws in handling of streams and tunneling
    ... In NTFS every file can have streams. ... If you add this stream by entering a comment in the properties of the ... NTFS Tunneling preserves the date values of files when you replace ... delete file Z from folder F ...
    (microsoft.public.win32.programmer.kernel)
  • Re: non blocking sockets and alternatives
    ... A mistake TCP novices frequently make is to think that the data blocks they ... the stream truly has no boundaries between what is written and what is read. ... so long as it preserves the underlying byte sequence. ... Use fixed-length messages. ...
    (comp.lang.java.programmer)
  • RE: Asynchronous Web Service Method Failure
    ... When a session begins, I create a folder for that session in a virtual ... When the user requests a report, sometimes a stream is opened to load some ... the URL of the file is returned by the web service method. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Cannot execute command line program in cmd.exe under aspx form
    ... process output stream gives me something like this: ... MyProgramExecutionOutput ... String strCommand = ... I have copies of cmd.exe file in my BIN folder and my ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Include image from local directory to webform?
    ... your ProcessRequest will read the image file from the folder as ... requested and stream it back to the client. ... But I'm interest is there a way to avoid creating virtual directory. ... allication to read from local dir, and sream into HTML response. ...
    (microsoft.public.dotnet.framework.aspnet)