[Libguestfs] [PATCH nbdkit v3 3/3] retry: Add a test of this filter.
Eric Blake
eblake at redhat.com
Fri Sep 20 11:36:27 UTC 2019
On 9/19/19 12:04 PM, Richard W.M. Jones wrote:
> On Thu, Sep 19, 2019 at 11:12:23AM -0500, Eric Blake wrote:
>>> + open)
>>> + # Count how many times the connection is (re-)opened.
>>> + i=`cat retry-reopen-fail-open-count`
>>
>> $() is nicer than ``, but even better is just:
>>
>> read i retry-reopen-fail-open-count
>
> Did you mean:
>
> read i < retry-reopen-fail-open-count
Yes. Thanks for fixing my typo.
>
> Unfortunately it fails when the file does not exist. (We could
> pre-create the files though).
Yes, or even pre-populate it to contain '0' instead of being empty, if
that makes it easier to track what it is doing.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20190920/d15b0176/attachment.sig>
More information about the Libguestfs
mailing list