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. signature.asc Description: OpenPGP digital signature
Re: subvolume nomenclature
On Fri, Mar 2, 2012 at 7:31 AM, Brian J. Murrell br...@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. I can't seem to figure out 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: subvolume nomenclature
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 homelib 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. signature.asc Description: OpenPGP digital signature
Re: subvolume nomenclature
On Fri, Mar 2, 2012 at 1:44 PM, Brian J. Murrell br...@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 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 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html