ZFSp - Python 实现的 ZFS 文件管理功能


BSD
Linux
Python

软件简介

ZFSp 是 Python 实现的 ZFS 文件管理功能。

ZFS是一个拥有逻辑卷管理功能的文件系统,最早源自于太阳微系统为Solaris操作系统开发的文件系统。ZFS是一个具有高存储容量、文件系统与卷管理概念集成、崭新的磁盘逻辑结构的轻量级文件系统,同时也是一个便捷的存储池管理系统。ZFS是一个使用通用开发与散布许可证授权的开源项目,这个商标名称现由甲骨文公司拥有。

要求 Python 3.5+ ,目前还不支持 3.6.

pipenv install -e .

使用方法:

$ zexplore label -p tests/fixtures/feature_large_blocks
{b'errata': 0,
b'features_for_read': {},
b'guid': 6168868809305637343,
b'hostid': 8323329,
b'hostname': b'ubuntu-zesty',
b'name': b'feature_large_blocks',
b'pool_guid': 16637796155898928459,
b'state': 1,
b'top_guid': 6168868809305637343,
b'txg': 16,
b'vdev_children': 1,
b'vdev_tree': {b'ashift': 9,
b'asize': 62390272,
b'create_txg': 4,
b'guid': 6168868809305637343,
b'id': 0,
b'is_log': 0,
b'metaslab_array': 33,
b'metaslab_shift': 24,
b'path': b'/vagrant/fixtures/feature_large_blocks',
b'type': b'file'},
b'version': 5000}
$ zexplore objset -p tests/fixtures/nested_datasets -P 1
{'config': 27,
'creation_version': 5000,
'deflate': 1,
'feature_descriptions': 30,
'features_for_read': 28,
'features_for_write': 29,
'free_bpobj': 11,
'history': 32,
'root_dataset': 2,
'sync_bplist': 31}
$ zexplore ls -p tests/fixtures/nested_datasets /n1/n2/n3
x
y
$ zexplore cat -p tests/fixtures/nested_datasets /gzip-9/gzip-9 | head -n 5
A
a
aa
aal
aalii