提供磁盘信息的接口
获取方法 返回summary类型数据 支持:windows 和 linux
启动是缓存了磁盘的所有信息
d = vela.disk.dev_*
这里采用的是前缀标识查找对应磁盘的内容
- 字段如下
- partition
- usage
- io_stat
- name
- mount
- fstype
- opts
- path
- total
- free
- used
- used_pct
- inodes
- used_inode
- used_inode_pct
- read_bytes
- read_count
- read_time
- write_bytes
- write_count
- write_time
- serialNumber
- label
local d = vela.disk.dev_C --查看C盘信息
print(d.partition)
print(d.usage)
print(d.io_stat)
print(d.name)
print(d.mount)
print(d.fstype)
print(d.opts)
print(d.path)
print(d.total)
print(d.free)
print(d.used)
print(d.used_pct)
print(d.inodes)
print(d.used_inode)
print(d.used_inode_pct)
print(d.read_bytes)
print(d.read_count)
print(d.read_time)
print(d.write_bytes)
print(d.write_count)
print(d.write_time)
print(d.serialNumber)
print(d.label)