Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfgang Hoschek <[email protected]>
  • Loading branch information
whoschek committed Jan 6, 2025
1 parent f4c08ed commit 2078fa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
[![Coverage](https://whoschek.github.io/bzfs/badges/coverage-badge.svg)](https://whoschek.github.io/bzfs/coverage/)
[![os](https://whoschek.github.io/bzfs/badges/os-badge.svg)](https://github.com/whoschek/bzfs/blob/main/.github/workflows/python-app.yml)
[![python](https://whoschek.github.io/bzfs/badges/python-badge.svg)](https://github.com/whoschek/bzfs/blob/main/.github/workflows/python-app.yml)
[![](https://whoschek.github.io/bzfs/badges/pypi-badge.svg)](https://pypi.org/project/bzfs)
[![pypi](https://img.shields.io/pypi/v/bzfs.svg)](https://pypi.org/project/bzfs)
[![zfs](https://whoschek.github.io/bzfs/badges/zfs-badge.svg)](https://github.com/whoschek/bzfs/blob/main/.github/workflows/python-app.yml)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Expand Down Expand Up @@ -129,7 +129,7 @@ tank1/foo/bar@test_2024-11-06_08:30:05_hourly
$ zfs list -t snapshot tank2/boo/bar
tank2/boo/bar@test_2024-11-06_08:30:05_daily
tank2/boo/bar@test_2024-11-06_08:30:05_hourly
tank2/boo/bar@test_2024-11-06_08:30:05_hourly
```


Expand Down Expand Up @@ -166,7 +166,7 @@ $ zfs list -t snapshot -r tank2/boo/bar
tank2/boo/bar@test_2024-11-06_08:30:05_daily
tank2/boo/bar@test_2024-11-06_08:30:05_hourly
tank2/boo/bar/baz@test_2024-11-06_08:40:00_daily
tank2/boo/bar/baz@test_2024-11-06_08:40:00_hourly
tank2/boo/bar/baz@test_2024-11-06_08:40:00_hourly
```


Expand Down Expand Up @@ -306,7 +306,7 @@ properties to replicate or delete or compare.
delete mode.
* Continously tested on Linux, FreeBSD and Solaris.
* Code is almost 100% covered by tests.
* Automatically replicates the snapshots of multiple datasets in parallel for best performance. Similarly, quickly
* Automatically replicates the snapshots of multiple datasets in parallel for best performance. Similarly, quickly
deletes (or compares) snapshots of multiple datasets in parallel.
* Simple and straightforward: Can be installed in less than a minute. Can be fully scripted without configuration
files, or scheduled via cron or similar. Does not require a daemon other than ubiquitous sshd.
Expand Down
5 changes: 3 additions & 2 deletions bzfs/bzfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4018,8 +4018,9 @@ def shutdown(self, msg_prefix: str, p: Params) -> None:
#############################################################################
class ConnectionPool:
"""Fetch a TCP connection for use in an SSH session, use it, finally return it back to the pool for future reuse.
Could be implemented using a SortedList via https://github.com/grantjenks/python-sortedcontainers but, to avoid a
dependency, is actually implemented using a (thread-safe) priority queue that can handle updates to the priority of
Could be implemented using a SortedList via https://github.com/grantjenks/python-sortedcontainers or using an
indexed priority queue via https://github.com/nvictus/pqdict but, to avoid an external dependency, is actually
implemented using a simple yet effective (thread-safe) priority queue that can handle updates to the priority of
items that are already contained in the queue. This is done by retaining inside the queue both the item before the
update, as well as the item after the update, such that the item-before-the-update is tagged with an auxiliary
pointer to the updated shallow copy that is the item-after-the-update aka the replacement for the item. Items that
Expand Down

0 comments on commit 2078fa0

Please sign in to comment.