From: Karel Zak <kzak@redhat.com>
To: Dave Reisner <d@falconindy.com>
Cc: util-linux@vger.kernel.org
Subject: Re: swapon feature additions
Date: Thu, 3 Nov 2011 11:41:13 +0100 [thread overview]
Message-ID: <20111103104113.GA10539@nb.net.home> (raw)
In-Reply-To: <20111027194056.GN691@rampage>
On Thu, Oct 27, 2011 at 03:40:56PM -0400, Dave Reisner wrote:
> 1) Introduce optional libmount support. This involves first refactoring
> reading of /etc/fstab to remove the duplicated code and use callbacks
> instead. Breaking out the functionality into libmount-powered and
> non-libmount-powered code is then much cleaner.
I'd like to move all swapon(8) functionality to libmount and replace
the whole swapon(8) by a small libmount based util. Unfortunately,
swapon/swapoff support in libmount is not implemented yet.
> 2) Teach swapon/swapoff to only look at files or partitions. The use
> case in mind is specifically for unswapping only files at shutdown, as
> partitions can remain mounted without harm.
This is probably more important, it would be nice to have
swapoff --all --files-only
> Does this seem reasonable? Is this functionality wanted? Anything else I
> should be aware of?
Yes, my suggestion is to start with 2) :-)
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2011-11-03 10:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-27 19:40 swapon feature additions Dave Reisner
2011-11-03 10:41 ` Karel Zak [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=20111103104113.GA10539@nb.net.home \
--to=kzak@redhat.com \
--cc=d@falconindy.com \
--cc=util-linux@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.