Re: [PATCH] Btrfs: add a disk info ioctl to get the disks attached to a filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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) <kreijack@xxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux