On Tue, Oct 08, 2013 at 11:41:38AM +0800, Anand Jain wrote: > As of now btrfs filesystem show reads directly from > disks. So sometimes output can be stale, mainly when > user wants to cross verify their operation like, > label or device delete or add... etc. so this > patch will read from the kernel ioctl if it finds > that disk is mounted. Sorry for holding this patch back for so long, I wanted to find out why the output is different before and after. The reason is simple, for my convenience I've added the user to the 'disk' group so I can access the block devices without root. This patch stops to read the block devs directly and uses the ioctl BTRFS_IOC_FS_INFO which gives me a silent EPERM. If I run show with sudo, then all filesystems show up as expected. david -- 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
