* Can't remove read-only snapshot with immutable flag set
@ 2016-06-08 8:37 cdlscpmv
2016-06-08 9:23 ` Roman Mamedov
2016-06-08 10:47 ` Noah Massey
0 siblings, 2 replies; 4+ messages in thread
From: cdlscpmv @ 2016-06-08 8:37 UTC (permalink / raw)
To: linux-btrfs
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't remove read-only snapshot with immutable flag set
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
1 sibling, 0 replies; 4+ messages in thread
From: Roman Mamedov @ 2016-06-08 9:23 UTC (permalink / raw)
To: cdlscpmv; +Cc: linux-btrfs
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't remove read-only snapshot with immutable flag set
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
1 sibling, 1 reply; 4+ messages in thread
From: Noah Massey @ 2016-06-08 10:47 UTC (permalink / raw)
To: cdlscpmv; +Cc: linux-btrfs@vger.kernel.org
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't remove read-only snapshot with immutable flag set
2016-06-08 10:47 ` Noah Massey
@ 2016-06-08 11:01 ` cdlscpmv
0 siblings, 0 replies; 4+ messages in thread
From: cdlscpmv @ 2016-06-08 11:01 UTC (permalink / raw)
To: Noah Massey; +Cc: linux-btrfs
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!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-08 11:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).