Skip to main content

Dataset management à la ZFS

Project description

ZzzFS: dataset management à la ZFS

ZzzFS (“snooze FS”) brings a set of ZFS management commands to non-ZFS volumes, turning any directory on a traditional filesystem into a zpool-like object. Using only the Python standard library, ZzzFS can be useful to, for example, test tools that use ZFS functionality on a system lacking real ZFS. Of course, ZzzFS misses all of the low-level features underpinning true ZFS volumes: checksumming, copy-on-write, etc.

Note that this is distinct from the ZFS feature allowing a zpool to be created using a regular file as a vdev. ZzzFS translates commands into move/copy/symlink operations in the original filesystem; it does not manage blocks in a virtual disk.

This is a functional work in progress; don’t trust any important data to it just yet. The test suite covers the following features:

  • create/destroy/list “filesystems” and “pools”

  • clone/promote, send/receive, rollback, diff snapshots

  • get/set/inherit attributes

  • pool command history

Example usage:

$ zzzpool create mypool /tmp/pool
$ zzzpool list
NAME    SIZE    ALLOC   FREE    CAP     HEALTH  ALTROOT
mypool     -        -      -      -     ONLINE  -
$ zzzfs create mypool/work
$ zzzfs create mypool/play
$ zzzfs snapshot mypool/work@yesterday
$ zzzfs list -t all
NAME                    USED    AVAIL   REFER   MOUNTPOINT
mypool                     -        -       -   /private/tmp/pool/mypool
mypool/play                -        -       -   /private/tmp/pool/mypool/play
mypool/work                -        -       -   /private/tmp/pool/mypool/work
mypool/work@yesterday      -        -       -   -
$ zzzfs send mypool/work@yesterday | zzzfs receive mypool/more_work
$ zzzpool history
History for 'mypool':
2015-01-13.22:32:38 zzzpool create mypool /tmp/pool
2015-01-13.22:32:50 zzzfs create mypool/work
2015-01-13.22:32:53 zzzfs create mypool/play
2015-01-13.22:32:56 zzzfs snapshot mypool/work@yesterday
2015-01-13.22:33:48 zzzfs receive mypool/more_work

For more details on real ZFS command usage, see the Oracle Solaris ZFS Administration Guide (https://docs.oracle.com/cd/E26505_01/pdf/E37384.pdf).

Released under the CDDL v1.1 license. There’s no original ZFS code present, but it’s only appropriate to pair “snooze” with “cuddle.”

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zzzfs-0.1.2.tar.gz (12.7 kB view details)

Uploaded Source

File details

Details for the file zzzfs-0.1.2.tar.gz.

File metadata

  • Download URL: zzzfs-0.1.2.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zzzfs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ce8e0e120c6c0c37e9ac814f2bd59562282a4c5894f0ba6d70af4cdd13b93cfa
MD5 212b00876e1e7dcbc7c013e9078b7666
BLAKE2b-256 46f4ebe00fe2cf8b7ecc3c7de10db83be017179e3c39b9acf35ac9a5aba80057

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page