public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Anton Mitterer <calestyo@scientia.org>
To: Andrei Borzenkov <arvidjaar@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: btrfs and hibernation to swap file on it?
Date: Sun, 23 Oct 2022 23:19:18 +0200	[thread overview]
Message-ID: <fed9bf82ebef6fcf9c40c2803c9c1503fe505e99.camel@scientia.org> (raw)
In-Reply-To: <ed497bfa-1f82-6761-788e-a20ef3b91cab@gmail.com>

Hey Andrei.

Thanks for your replies and sorry for my late answer but first I had
been on some diving trip and then had a cold until few days ago.


On Wed, 2022-09-28 at 22:12 +0300, Andrei Borzenkov wrote:
> There are quite some restrictions for using swapfile on btrfs, in
> particular, it must be preallocated and btrfs will refuse relocation
> of
> extents in this file.

I assume it only does so (refuse relocation) while it's actually an
active swap area (how would it know otherwise that the file is a swap
file)?


> kernel supports swapfile with multiple extents.

Ah, I see.


So, with the btrfsprogs, is there a way to get the offset?

The whole interface with specifying an offset seems to be quite unhandy
anyway (would be better for users IMO, if one could specify a pathname
and the kernel would find out the offset by itself)... but having to
download/compile a "3rd party" tool makes it even more cumbersome.


Cheers,
Chris.

  reply	other threads:[~2022-10-23 21:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27 15:45 btrfs and hibernation to swap file on it? Christoph Anton Mitterer
2022-09-28 19:12 ` Andrei Borzenkov
2022-10-23 21:19   ` Christoph Anton Mitterer [this message]
2022-09-30 12:12 ` Forza
2022-10-23 21:25   ` Christoph Anton Mitterer

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=fed9bf82ebef6fcf9c40c2803c9c1503fe505e99.camel@scientia.org \
    --to=calestyo@scientia.org \
    --cc=arvidjaar@gmail.com \
    --cc=linux-btrfs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox