LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Jacky Malcles <Jacky.Malcles@bull.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: can't cleanup /proc/swaps without rebooting ?
Date: Thu, 11 Jan 2007 16:09:38 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0701111601310.21890@blonde.wat.veritas.com> (raw)
In-Reply-To: <45A650D2.90901@bull.net>

On Thu, 11 Jan 2007, Jacky Malcles wrote:
> 
> is there a way, other than rebooting, to clean up /proc/swaps ?
> 
> I'm in this situation (due to testing errors),
> # cat /proc/swaps
> Filename                                Type            Size    Used
> Priority
> /dev/sdc1                               partition       2040064 0       -1
> /tmp/swaH4mvTI/swapfilenext\040(deleted) file           48960   0       -31
> /tmp/swa5TlBva/swapfilenext\040(deleted) file           49088   0       -118
> #
> #swapon -s
> Filename                                Type            Size    Used
> Priority
> /dev/sdc1                               partition       2040064 0       -1
> /tmp/swaH4mvTI/swapfilenext\040(deleted) file           48960   0       -31
> /tmp/swa5TlBva/swapfilenext\040(deleted) file           49088   0       -118
> #

Good question.  Sorry, I don't see another way than rebooting.
Next time you're testing, best keep a link to those swapfiles.
Not an answer to be proud of, but it looks like a better answer
would need a whole new syscall (or perhaps some /proc trickery).

Hugh

      parent reply	other threads:[~2007-01-11 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11 14:59 Jacky Malcles
2007-01-11 15:15 ` Erik Mouw
2007-01-11 16:09 ` Hugh Dickins [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0701111601310.21890@blonde.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=Jacky.Malcles@bull.net \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: can'\''t cleanup /proc/swaps without rebooting ?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).