From: cdlscpmv <cdlscpmv@gmail.com>
To: Noah Massey <noah.massey@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 11:01:23 +0000 [thread overview]
Message-ID: <20160608110123.GB24442@localhost> (raw)
In-Reply-To: <CADfjVrhi7X6dGdKrDYNL3sxy-kcbF0SkaNxAeyiJZhRVJYCcRQ@mail.gmail.com>
On 2016/06/08 06:47:52 -0400, Noah Massey wrote:
> On Wednesday, June 8, 2016, cdlscpmv <cdlscpmv@gmail.com> wrote:
> >
> > Hi!
> >
> > 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?
> >
> Try
> #> btrfs property set my_snaphot ro false
> #> chattr -i my_snapshot
> #> btrfs sub del my_snapshot
I've already tried that. It worked. Nevertheless, thanks for the reply!
prev parent reply other threads:[~2016-06-08 11:00 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
2016-06-08 10:47 ` Noah Massey
2016-06-08 11:01 ` cdlscpmv [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=20160608110123.GB24442@localhost \
--to=cdlscpmv@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=noah.massey@gmail.com \
/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.