abbbi / abbbi/virtnbdbackup

Use nbd.connect_systemd_socket_activation to run nbdkit/qemu-nbd commands

オープン
#58 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
code-cleanup
主要言語
Python
スター
518
フォーク
57
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently using subprocess.* functions to run qemu-nbd. I think this can be simplified by using libnbd's builtin
connect_systemd_socket_activation and nbd.connect_command. Example:

https://github.com/libguestfs/libnbd/blob/master/python/examples/checksum.py#L35

and:

https://github.com/libguestfs/libnbd/blob/master/python/t/590-aio-copy.py#L122

```
09:51 abi: it's not connected with systemd except that they invented the protocol
09:51 it doesn't require systemd to be installed or running
```

Unfortunately there is currently no way to catch stderr, means if underlying command fails for some reason, errors cannot be
catched and written to logfile accordingly. Need to check if its possible to redirect errors for all commands to a logfile.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。