linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* subvolume nomenclature
@ 2012-03-02 13:31 Brian J. Murrell
  2012-03-02 13:36 ` cwillu
  0 siblings, 1 reply; 4+ messages in thread
From: Brian J. Murrell @ 2012-03-02 13:31 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

I seem to have the following subvolumes of my filesystem:

# btrfs sub li /
ID 256 top level 5 path @
ID 257 top level 5 path @home
ID 258 top level 5 path @/etc/apt/oneiric

I *think* the last one is there due to a:

# btrfsctl -s oneiric /

that I did prior to doing an upgrade.  I can't seem to figure out the
nomenclature to delete it though:

# btrfs sub de /@/etc/apt/oneiric
ERROR: error accessing '/@/etc/apt/oneiric'

I've tried lots of other combinations with no luck.

Can anyone give me a hint (or the answer :-) )?

Cheers,
b.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: subvolume nomenclature
  2012-03-02 13:31 subvolume nomenclature Brian J. Murrell
@ 2012-03-02 13:36 ` cwillu
  2012-03-02 19:44   ` Brian J. Murrell
  0 siblings, 1 reply; 4+ messages in thread
From: cwillu @ 2012-03-02 13:36 UTC (permalink / raw)
  To: Brian J. Murrell; +Cc: linux-btrfs

On Fri, Mar 2, 2012 at 7:31 AM, Brian J. Murrell <brian@interlinx.bc.ca=
> wrote:
> I seem to have the following subvolumes of my filesystem:
>
> # btrfs sub li /
> ID 256 top level 5 path @
> ID 257 top level 5 path @home
> ID 258 top level 5 path @/etc/apt/oneiric
>
> I *think* the last one is there due to a:
>
> # btrfsctl -s oneiric /
>
> that I did prior to doing an upgrade. =C2=A0I can't seem to figure ou=
t the
> nomenclature to delete it though:
>
> # btrfs sub de /@/etc/apt/oneiric

Try btrfs sub delete /etc/apt/oneiric, assuming that that's the path
where you actually see it.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: subvolume nomenclature
  2012-03-02 13:36 ` cwillu
@ 2012-03-02 19:44   ` Brian J. Murrell
  2012-03-02 19:59     ` cwillu
  0 siblings, 1 reply; 4+ messages in thread
From: Brian J. Murrell @ 2012-03-02 19:44 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

On 12-03-02 08:36 AM, cwillu wrote:
> 
> Try btrfs sub delete /etc/apt/oneiric, assuming that that's the path
> where you actually see it.

Well, there is a root filesystem at /etc/apt/oneiric:

# ls /etc/apt/oneiric/
bin   etc         initrd.img.old  mnt   root  selinux  tmp  vmlinuz
boot  home        lib             opt   run   srv      usr  vmlinuz.old
dev   initrd.img  media           proc  sbin  sys      var

but it doesn't delete:

# btrfs subvolume delete /etc/apt/oneiric
Delete subvolume '/etc/apt/oneiric'
ERROR: cannot delete '/etc/apt/oneiric' - Device or resource busy

and doesn't unmount:

# umount /etc/apt/oneiric
umount: /etc/apt/oneiric: not mounted

Cheers,
b.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: subvolume nomenclature
  2012-03-02 19:44   ` Brian J. Murrell
@ 2012-03-02 19:59     ` cwillu
  0 siblings, 0 replies; 4+ messages in thread
From: cwillu @ 2012-03-02 19:59 UTC (permalink / raw)
  To: Brian J. Murrell; +Cc: linux-btrfs

On Fri, Mar 2, 2012 at 1:44 PM, Brian J. Murrell <brian@interlinx.bc.ca=
> wrote:
> On 12-03-02 08:36 AM, cwillu wrote:
>>
>> Try btrfs sub delete /etc/apt/oneiric, assuming that that's the path
>> where you actually see it.
>
> Well, there is a root filesystem at /etc/apt/oneiric:
>
> # ls /etc/apt/oneiric/
> bin =C2=A0 etc =C2=A0 =C2=A0 =C2=A0 =C2=A0 initrd.img.old =C2=A0mnt =C2=
=A0 root =C2=A0selinux =C2=A0tmp =C2=A0vmlinuz
> boot =C2=A0home =C2=A0 =C2=A0 =C2=A0 =C2=A0lib =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 opt =C2=A0 run =C2=A0 srv =C2=A0 =C2=A0 =C2=A0usr =C2=
=A0vmlinuz.old
> dev =C2=A0 initrd.img =C2=A0media =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
proc =C2=A0sbin =C2=A0sys =C2=A0 =C2=A0 =C2=A0var
>
> but it doesn't delete:
>
> # btrfs subvolume delete /etc/apt/oneiric
> Delete subvolume '/etc/apt/oneiric'
> ERROR: cannot delete '/etc/apt/oneiric' - Device or resource busy

root@repository:~/foo$ btrfs sub create bar
Create subvolume './bar'
root@repository:~/foo$ cd bar
root@repository:~/foo/bar$ btrfs sub del /home/cwillu/foo/bar
Delete subvolume '/home/cwillu/foo/bar'
ERROR: cannot delete '/home/cwillu/foo/bar' - Device or resource busy


It's likely there's at least one process with an open handle to that
subvolume (even just a shell that as its current working directory).
lsof | grep /etc/apt/oneiric should tell you what you need.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-02 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 13:31 subvolume nomenclature Brian J. Murrell
2012-03-02 13:36 ` cwillu
2012-03-02 19:44   ` Brian J. Murrell
2012-03-02 19:59     ` cwillu

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).