public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Removing an executable while it runs
@ 2001-12-05 21:19 Petr Vandrovec
  0 siblings, 0 replies; 9+ messages in thread
From: Petr Vandrovec @ 2001-12-05 21:19 UTC (permalink / raw)
  To: Mike Fedyk; +Cc: Cyrille Beraud, linux-kernel

On  5 Dec 01 at 11:32, Mike Fedyk wrote:
> > No. Some will refuse to unlink running app (or another opened file).
> > Some will unlink it immediately, and app then dies when it needs
> > page-in something. Some works as POSIX mandates.
> > 
> 
> POSIX behaviour would be in ext[23], reiserfs, xfs, (and probably ffs,
> ntfs).  Can someone verify which FSes have what behaviour?
> 
> I'd guess that vfat (fat16/28--err, 32), nfs, and hfs would delete
> immediately.

ncpfs (and afaik smbfs) will refuse to delete file. For local filesystems
there is no excuse to not support POSIX semantic on unlink if they do not
store data together with filename.
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Removing an executable while it runs
@ 2001-12-05 17:15 Petr Vandrovec
  2001-12-05 19:32 ` Mike Fedyk
  0 siblings, 1 reply; 9+ messages in thread
From: Petr Vandrovec @ 2001-12-05 17:15 UTC (permalink / raw)
  To: Cyrille Beraud; +Cc: linux-kernel

On  5 Dec 01 at 11:00, Cyrille Beraud wrote:

> I would like to remove an executable from the file-system while it is 
> running and
> get all the blocks back immediately, not after the end of the program.
> Is this possible ?

No. Binary runs from these blocks. Maybe you can force it to run from
swap by modifying these pages through ptrace interface, but it is
not supported. Just kill the app if you need these blocks.

>  From what I understand, the inode is not released until the program 
> ends. Do all the file-systems behave the same way ?

No. Some will refuse to unlink running app (or another opened file).
Some will unlink it immediately, and app then dies when it needs
page-in something. Some works as POSIX mandates.

                                            Best regards,
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Removing an executable while it runs
@ 2001-12-05 16:00 Cyrille Beraud
  2001-12-05 16:14 ` Brian Gerst
  0 siblings, 1 reply; 9+ messages in thread
From: Cyrille Beraud @ 2001-12-05 16:00 UTC (permalink / raw)
  To: linux-kernel

Hello,
I would like to remove an executable from the file-system while it is 
running and
get all the blocks back immediately, not after the end of the program.
Is this possible ?
 From what I understand, the inode is not released until the program 
ends. Do all the
file-systems behave the same way ?

Thank you for your help.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-12-06 15:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-05 21:19 Removing an executable while it runs Petr Vandrovec
  -- strict thread matches above, loose matches on Subject: below --
2001-12-05 17:15 Petr Vandrovec
2001-12-05 19:32 ` Mike Fedyk
2001-12-05 16:00 Cyrille Beraud
2001-12-05 16:14 ` Brian Gerst
2001-12-05 20:00   ` Christopher Friesen
2001-12-05 20:54     ` Tim Walberg
2001-12-06  0:25       ` Jeff Dike
2001-12-06 15:43         ` Eric-Olivier Lamey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox