subvolume nomenclature
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.
On Fri, Mar 2, 2012 at 7:31 AM, Brian J. Murrell <[email protected]=
Quoted 8 lines
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
Quoted 5 lines
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
Quoted 3 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · cwillu
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.
On Fri, Mar 2, 2012 at 1:44 PM, Brian J. Murrell <[email protected]=
Quoted 10 lines
wrote:
Quoted 3 lines · cwillu
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
Quoted 1 line
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
Quoted 1 line
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
Quoted 6 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html