All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Michael Ruiz <michael@mruiz.dev>, linux-btrfs@vger.kernel.org
Subject: Re: Linux swap file not activating after reboot
Date: Thu, 16 Jan 2020 08:51:50 +0800	[thread overview]
Message-ID: <98436ce6-63f4-d618-2c18-e460b16a3a14@gmx.com> (raw)
In-Reply-To: <5318295.DvuYhMxLoT@archlinux>


[-- Attachment #1.1: Type: text/plain, Size: 726 bytes --]



On 2020/1/16 上午8:34, Michael Ruiz wrote:
> Hi,
>  I have a //@swap subvolume and i have a swapfile within it. I mount the 
> subvolume like such in fstab:
> 
> `rw,ssd,nofail,noautodefrag,nodatacow,nodatasum,subvolid=1234,subvol=/@swap`
> 
> It mounts correctly, but 1/15/20 4:20 PM kernel I get: 
> 
> `BTRFS warning (device dm-0): swapfile must not be copy-on-write`
> 
> I did chattr +C on the empty swapfile as per arch wiki instructions. The only 
> problem is that it does not work after reboot... Does btrfs allow subvolumes 
> to have different mount options?

If that file has nodatacow, then it may be possible that you had a
snapshot of that subvolume, and caused problem.

Thanks,
Qu


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2020-01-16  0:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16  0:34 Linux swap file not activating after reboot Michael Ruiz
2020-01-16  0:51 ` Qu Wenruo [this message]
2020-01-16 18:55 ` David Sterba
2020-01-16 20:43   ` Omar Sandoval
2020-01-17  0:44     ` Michael Ruiz
2020-01-17 13:47       ` David Sterba

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=98436ce6-63f4-d618-2c18-e460b16a3a14@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=michael@mruiz.dev \
    /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.