Re: Shock and Awe



Matthew T. Russotto wrote:
In article <LbmMh.18106$O_5.15491@trnddc03>,
Wes Groleau <groleau+nntp@xxxxxxxxxxxxx> wrote:
Matthew T. Russotto wrote:
It is. But modifying a file the way prebinding does is not the same
as deleting one and putting a new one in its place.
Changing bytes IN an open file is absurd!

Without some method of keeping changes coherent, it is. But it can be
quite useful if such methods exist.

In a multiuser database system, there is a reason for it, and extensive
code to keep it from causing problems. When you are merely recompiling or tweaking an executable, make a new version and delete the old when
it is free.

Even Windows is smart enough to resist that.

Only Windows, so far as I know.

Windows is not the only system that has file locking.

Now, if you want real fun, try changing a running application by
modifying the file on disk, then forcing the app to be paged out.

In the versions of Solaris that I worked with in the 1990s, you
don't really modify a file on disk. You write a new version and
tell the OS to delete the old one. Which it does when there are
no file descriptors using it. Until then, the processes owning
those file IDs continue to use the old version for paging or whatever.

I believe this is true of other Unix variants. It should be true
for HFS+ but apparently it is not. BUG.

--
Wes Groleau
----
The man who reads nothing at all is better educated
than the man who reads nothing but newspapers.
-- Thomas Jefferson
.



Relevant Pages

  • Re: Method of collecting random numbers through physical noise sources found in a hard drive disk
    ... he does not mention anything about modifying ... He says that he takes the raw signals from the disk. ... develop software code to extract the magnetic read back signals from ...
    (sci.crypt)
  • Re: Disk I/O degraded performance
    ... and I experienced lower disk performance for processes that open file ... flag and reads the files to end. ... further into the disk than the other then start reading). ... you might want to check that you are comparing apples to apples; ...
    (Linux-Kernel)
  • Re: Set volume label programmatically ?
    ... Incorrectly modifying core parts of the disk volume structure can easily lead to disk corruptions. ... That is correct as far as it goes, but it also implies that any program that looks for and modifies the home blocks must know about the different locations and search algorithms, and thus must contain most or all of the common algorithms for locating the home blocks. ... BTW, the primary home block isn't necessarily in INDEXF.SYS any more, and there is no longer any requirement for a primary home block, and a number of disks in present use do not have a ...
    (comp.os.vms)
  • Re: Shock and Awe
    ... Windows is not the only system that has file locking. ... modifying the file on disk, then forcing the app to be paged out. ... In the versions of Solaris that I worked with in the 1990s, ...
    (comp.sys.mac.system)
  • Re: BLDDEMO: There were errors bulding
    ... I got EDITBIN: fatal error LNK1104: cannot open file ... hard disk with an intermittent read problem. ...
    (microsoft.public.windowsce.platbuilder)