Bug 743124

Summary: BTRFS tools in Fedora doesn't support Root subvolumes
Product: [Fedora] Fedora Reporter: Xavier Krantz <xakraz>
Component: btrfs-progsAssignee: Josef Bacik <josef>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: josef, mmahut, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-06 20:03:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Xavier Krantz 2011-10-03 21:58:59 UTC
Description of problem:
------------------------
Using Ubuntu, I installed my system into a BTRFS subvolume.
The "Apt-btrfs-snapshot" has created btrfs snapshots of the root filesystem each time that apt installs/removes/upgrades a software package.

I moved my Fedora 15 root parition into this BTRFS subvolumes.
Now BTRFS tools can't delete other subvolumes and display some error message : 

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
Btrfs Btrfs v0.19

How reproducible:
------------------
Each time trying to remove a subvolume

Steps to Reproduce:
1. List all btrfs subvolume to get subvolume path / ID
2. Try to delete an unmounted btrfs subvolume
3.
  
Actual results:
---------------
* Existing Subvolumes : 

┌[ root@Jumper ] /
└─> # btrfs subvolume list /
ID 256 top level 5 path @
ID 257 top level 5 path @home
ID 265 top level 5 path @apt-snapshot-2011-08-07_21:11:31
ID 266 top level 5 path @apt-snapshot-2011-08-07_21:19:30
ID 267 top level 5 path @apt-snapshot-2011-08-07_21:26:36
┌[ root@Jumper ] /
└─> # btrfs subvolume delete apt-snapshot-2011-08-07_21:11:31
ERROR: error accessing 'apt-snapshot-2011-08-07_21:11:31'
┌[ root@Jumper ] /
└─> # btrfs subvolume delete @apt-snapshot-2011-08-07_21:11:31
ERROR: error accessing '@apt-snapshot-2011-08-07_21:11:31'
┌[ root@Jumper ] /
└─> # btrfs subvolume delete /@apt-snapshot-2011-08-07_21:11:31
ERROR: error accessing '/@apt-snapshot-2011-08-07_21:11:31'
┌[ root@Jumper ] /
└─> # btrfs subvolume delete 267
ERROR: error accessing '267'


* New Subvolumes
[ root@Jumper ] /home/xakraz
└─> # btrfs subvolume create @test
Create subvolume './@test'
┌[ root@Jumper ] /home/xakraz
└─> # btrfs subvolume list /
ID 256 top level 5 path @
ID 257 top level 5 path @home
ID 265 top level 5 path @apt-snapshot-2011-08-07_21:11:31
ID 266 top level 5 path @apt-snapshot-2011-08-07_21:19:30
ID 267 top level 5 path @apt-snapshot-2011-08-07_21:26:36
ID 292 top level 5 path @home/xakraz/@test
┌[ root@Jumper ] /home/xakraz
└─> # btrfs subvolume delete @home/xakraz/@test
ERROR: error accessing '@home/xakraz/@test'


Expected results:
-------------------
The action should be done and with a confirmation message.

Additional info:
----------------

Comment 1 Ondrej Vasik 2011-10-04 17:57:52 UTC
This bugzilla has nothing to do with filesystem package/component. This package creates and owns the set of basic system directories. Reassigning to btrfs-progs, but maybe belongs to kernel.

Comment 2 Fedora End Of Life 2012-08-06 20:03:10 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Fedora End Of Life 2012-08-06 20:03:10 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping