On 09/15/2017 06:37 PM, Ulli Horlacher wrote: > I have my btrfs filesystem mounted with option user_subvol_rm_allowed > > tux@xerus: btrfs --version > btrfs-progs v4.4 > > tux@xerus: uname -a > Linux xerus 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 > x86_64 x86_64 x86_64 GNU/Linux > > tux@xerus: id > uid=1000(tux) gid=100(users) groups=100(users) > > tux@xerus: btrfs subvolume snapshot -r /test/tux/zz > /test/tux/zz/.snapshot/2017-09-15_1824.test > tux@xerus: btrfs subvolume delete /test/tux/zz/.snapshot/2017-09-15_1824.test > Delete subvolume (no-commit): '/test/tux/zz/.snapshot/2017-09-15_1824.test' > ERROR: cannot delete '/test/tux/zz/.snapshot/2017-09-15_1824.test': Read-only > file system > > root can delete this snapshot, but not the user. Why?
You should change the "ro" property to false before deleting it btrfs property set /test/tux/zz/.snapshot/2017-09-15_1824.test ro false BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it> Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html