向柳 wrote:
/**
* fdisk_labeltype:
* @FDISK_DISKLABEL_DOS: MBR label type
* @FDISK_DISKLABEL_SUN: SUN label type
* @FDISK_DISKLABEL_SGI: SGI label type
* @FDISK_DISKLABEL_BSD: BSD label type
* @FDISK_DISKLABEL_GPT: UEFI GPT type
*
* Supported partition table types (labels)
*/
enum fdisk_labeltype {
FDISK_DISKLABEL_DOS = (1 << 1), /* MBR label type */
FDISK_DISKLABEL_SUN = (1 << 2), /* SUN label type */
FDISK_DISKLABEL_SGI = (1 << 3), /* SGI label type */
FDISK_DISKLABEL_BSD = (1 << 4), /* BSD label t ype */
FDISK_DISKLABEL_GPT = (1 << 5) /* UEFI GPT type */
};
是MBR沒錯,MBR起源於PC DOS 2.0,可能早期的工具都是用DOS稱呼吧,反正大家看得懂就好。
這 4 種 說法 適當:
FDISK_DISKLABEL_SUN = (1 << 2), /* SUN label type */
FDISK_DISKLABEL_SGI = (1 << 3), /* SGI label type */
FDISK_DISKLABEL_BSD = (1 << 4), /* BSD label t ype */
FDISK_DISKLABEL_GPT = (1 << 5) /* UEFI GPT type */
這 1 種 說法 不適當:
FDISK_DISKLABEL_DOS = (1 << 1), /* MBR label type */