Hi Josef, what about using your ioctl to exporting also other info ? For example devid, size, bytes, uuid ...
I know that btrfs filesystem-show does the same, but it reads the partition (the disk) instead of query the filesystem. That means: - It work even for unmounted filesystem (which is good) - The results are inaccurate for a mounted filesystem, because the read data is not valid until a flush of the pages (which is bad.. very bad). All the data are enclosed in the struct btrfs_device, so is very easy to extract. Regards G.Baroncelli On Tuesday, 28 September, 2010, Josef Bacik wrote: > This was a request from the systemd guys. They need a quick and easy way to get [...] -- gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreij...@inwind.it> Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512 -- 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