All of lore.kernel.org
 help / color / mirror / Atom feed
From: cdlscpmv <cdlscpmv@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Can't remove read-only snapshot with immutable flag set
Date: Wed, 8 Jun 2016 08:37:57 +0000	[thread overview]
Message-ID: <20160608083757.GA30823@localhost> (raw)

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?


             reply	other threads:[~2016-06-08  8:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08  8:37 cdlscpmv [this message]
2016-06-08  9:23 ` Can't remove read-only snapshot with immutable flag set Roman Mamedov
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=20160608083757.GA30823@localhost \
    --to=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.