Re: Can't remove read-only snapshot with immutable flag set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, June 8, 2016, cdlscpmv <cdlscpmv@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux