libkysdk-system/man/python/kysdk_Disk.3

224 lines
4.5 KiB
Groff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.TH "kysdk.Disk" 3 "Thu Sep 21 2023" "My Project" \" -*- nroff -*-
.ad l
.nh
.SH NAME
kysdk.Disk \- 获取磁盘信息 主要用来获取磁盘的列表,磁盘的扇区数量,每个扇区的字节数,容量,型号、序列号、子分区数量,类型和固件版本信息
.SH SYNOPSIS
.br
.PP
.PP
Inherits \fBkysdk\&.Base\fP\&.
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "def \fB__init__\fP (self)"
.br
.ti -1c
.RI "def \fBgetDiskList\fP (self)"
.br
.RI "获取所有磁盘的列表 "
.ti -1c
.RI "def \fBgetDiskSectorSize\fP (self, dev_path)"
.br
.RI "获取磁盘的每个扇区的字节数 "
.ti -1c
.RI "def \fBgetDiskTotalSizeMiB\fP (self, dev_path)"
.br
.RI "获取磁盘容量 "
.ti -1c
.RI "def \fBgetDiskModel\fP (self, dev_path)"
.br
.RI "获取磁盘型号 "
.ti -1c
.RI "def \fBgetDiskSerial\fP (self, dev_path)"
.br
.RI "获取磁盘序列号 "
.ti -1c
.RI "def \fBgetDiskPartitionNums\fP (self, dev_path)"
.br
.RI "获取磁盘/分区下的子分区数量 "
.ti -1c
.RI "def \fBgetDiskType\fP (self, dev_path)"
.br
.RI "获取磁盘类型 "
.ti -1c
.RI "def \fBgetDiskVersion\fP (self, dev_path)"
.br
.RI "获取磁盘固件版本信息 "
.ti -1c
.RI "def \fBgetDiskSectorNum\fP (self, dev_path)"
.br
.RI "获取磁盘扇区数量 "
.in -1c
.SS "Additional Inherited Members"
.SH "Detailed Description"
.PP
获取磁盘信息 主要用来获取磁盘的列表,磁盘的扇区数量,每个扇区的字节数,容量,型号、序列号、子分区数量,类型和固件版本信息
.SH "Member Function Documentation"
.PP
.SS "def kysdk\&.Disk\&.getDiskList ( self)"
.PP
获取所有磁盘的列表
.PP
\fBReturns\fP
.RS 4
磁盘的列表,每个字符串表示一个磁盘的绝对路径
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskModel ( self, dev_path)"
.PP
获取磁盘型号
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
磁盘型号
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskPartitionNums ( self, dev_path)"
.PP
获取磁盘/分区下的子分区数量
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
该磁盘/分区下的子分区数量
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskSectorNum ( self, dev_path)"
.PP
获取磁盘扇区数量
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
扇区数量
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskSectorSize ( self, dev_path)"
.PP
获取磁盘的每个扇区的字节数
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
每个扇区的字节数
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskSerial ( self, dev_path)"
.PP
获取磁盘序列号
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
磁盘序列号
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskTotalSizeMiB ( self, dev_path)"
.PP
获取磁盘容量
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
磁盘容量MiB为单位
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskType ( self, dev_path)"
.PP
获取磁盘类型
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
磁盘类型,固态 or 机械 or 混合
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SS "def kysdk\&.Disk\&.getDiskVersion ( self, dev_path)"
.PP
获取磁盘固件版本信息
.PP
\fBParameters\fP
.RS 4
\fIdev_path\fP 指定磁盘名称,应当是例如/dev/sda这种绝对路径
.RE
.PP
\fBReturns\fP
.RS 4
固件版本信息
.RE
.PP
.PP
References kysdk\&.SessionBase\&.interface, and kysdk\&.Base\&.interface\&.
.SH "Author"
.PP
Generated automatically by Doxygen for kysdk.py from the source code\&.