Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site adiron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!mcnc!duke!adiron!jdptxt From: jdptxt@adiron.UUCP (The Mad Hacker) Newsgroups: net.sources.bugs Subject: Re: What happens during an unlink(2) Message-ID: <341@adiron.UUCP> Date: Mon, 19-May-86 15:00:44 EDT Article-I.D.: adiron.341 Posted: Mon May 19 15:00:44 1986 Date-Received: Fri, 23-May-86 07:13:31 EDT References: <947@kitty.UUCP> <979@kitty.UUCP> <634@ihdev.UUCP> <2759@utcsri.UUCP> Organization: PAR Technology, New Hartford, NY Lines: 17 Keywords: Disk blocks sometimes get zeroed Summary: Other issues about unlink() that I haven't seen addressed. Several problems occur if one wants to zero out the file blocks upon unlinking them. What if the file that I try to remove has more than one link to it? Should unlink be successful but the zero-ing not be done or should the zero-ing be done regardless or should unlink fail altogether? Also, it is possible to rm a file that you have no access to and even one that you don't own. An attempt to write zeros to such a file should fail but it is not a problem to rm it even if it is the last link to the file. (We have a project here which heavily depends on the idea that an rm on a file does not change the contents of the disk blocks that contained those files because someone else may actually own the file or have a use for the link to the file.) If you want an rm to zero the file blocks and then unlink the file, then go ahead and write one but please don't ask that everyone install it jdp