Thanks Hugo for the heads-up.
I am trying to enhance GParted (http://www.gparted.org/) to better
support btrfs, specifically multi-device ones. GParted displays the
busy status (mounted or not) and the mount point of each partition.
For a single device file system this is easy. Entry in /proc/mounts
for the partition identifies it's mounted and provides the mount
point.
In the general case for btrfs I don't know how to get from device name
containing a btrfs volume to knowing if it's mounted and where?
::
btrfs filesystem show can identify the devices in a btrfs,
if its not for the final sync-up, I had posted a patch which shows
mount-point in the btrfs fi show -m output that should help you as
of now, I have plans of revising it later and make it integration
ready.
> # mkfs.btrfs /dev/sdb2 /dev/sdb3 /dev/sdb4
> # mount /dev/sdb2 /mnt/1
> # btrfs device delete /dev/sdb2 /mnt/1
>
> So /dev/sdb2 is no longer part of the file system, but it's still
> mounted using it.
>
> # grep btrfs /proc/mounts
> /dev/sdb2 /mnt/1 btrfs rw,seclabel,relatime,ssd,space_cache 0 0
This bug isn't there is the current btrfs-next. I couldn't
reproduce.
Anand posted some kernel patches for an ioctl a few weeks ago that
would allow you to get hold of the kernel's UUID<->device mapping.
yes btrfs-devlist is WIP. As of now I am looking for some help
as in here:
http://www.spinics.net/lists/linux-fsdevel/msg72861.html
OR
http://www.spinics.net/lists/linux-btrfs/msg31784.html
Team, Any help ? Thanks.
Anand
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html