From: Roman Mamedov <rm@romanrm.net>
To: cdlscpmv <cdlscpmv@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Can't remove read-only snapshot with immutable flag set
Date: Wed, 8 Jun 2016 14:23:23 +0500 [thread overview]
Message-ID: <20160608142323.265d2f35@natsu> (raw)
In-Reply-To: <20160608083757.GA30823@localhost>
[-- Attachment #1: Type: text/plain, Size: 929 bytes --]
On Wed, 8 Jun 2016 08:37:57 +0000
cdlscpmv <cdlscpmv@gmail.com> wrote:
> It happened that I set the immutable flag (via `chattr +i`) on a subvolume.
> Then I made a read-only snapshot of that subvolume. Now I can't remove
> this snapshot.
>
> #> btrfs subvolume delete my_snapshot
> Delete subvolume (no-commit): 'my_snapshot'
> ERROR: cannot delete 'my_snapshot': Operation not permitted
> #> chattr -i my_snapshot
> chattr: Read-only file system while setting flags on my_snapshot
> #> btrfs --version
> btrfs-progs v4.4.1
> #> uname -r
> 4.5.2
>
> Is there any other way to do this? Or is it a bug?
You could try doing:
btrfs property set my_snapshot ro false
normally this should change it to a read-write snapshot. But it seems like
changing btrfs properties is also blocked by chattr +i (at least I can't
change compression methods on a +i file).
--
With respect,
Roman
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2016-06-08 9:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-08 8:37 Can't remove read-only snapshot with immutable flag set cdlscpmv
2016-06-08 9:23 ` Roman Mamedov [this message]
2016-06-08 10:47 ` Noah Massey
2016-06-08 11:01 ` cdlscpmv
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=20160608142323.265d2f35@natsu \
--to=rm@romanrm.net \
--cc=cdlscpmv@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 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.