Getting disk size from ioctl call for veritas volume greater than 2TB
What is the ioctl command to get the disk size of vxvm volume that is greater than 2TB? (DKIOCGVTOC is working fine till the block count doesn't exceeds the 32 bit in开发者_如何学编程teger size limit)
A VTOC cannot handle more than 2TiB volumes. You need to use EFI labels to handle them.
You should use efi_alloc_and_read to get the EFI label.
精彩评论