Displaying 8 results from an estimated 8 matches for "name_of_".
2018 Dec 07
1
Re: [nbdkit PATCH 6/5] nbd: More debug details
On Fri, Dec 07, 2018 at 10:00:42AM -0600, Eric Blake wrote:
> Use new 'name_of_*' functions to offer a bit more details about
> messages being forwarded on to the remote server.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
> plugins/nbd/nbd.c | 8 +++++---
> plugins/nbd/Makefile.am | 3 ++-
> 2 files changed, 7 insertions(+), 4...
2018 Dec 06
0
[PATCH nbdkit 3/5] protocol: Generate map functions from NBD protocol flags to printable strings.
This generates small functions which map from various integer NBD
protocol flags to the string equivalent.
eg:
name_of_nbd_cmd (NBD_CMD_READ)
---> "NBD_CMD_READ"
This commit uses some hairy sed scripting to ensure that we don't add
any more dependencies to nbdkit.
---
src/protocol.h | 9 +++++++
.gitignore | 1 +
src/Makefile.am | 17 +++++++++++--
src/protostrings.sed...
2018 Dec 06
10
[PATCH nbdkit 0/5] protocol: Generate map functions from NBD protocol flags to printable strings.
With some crufty sed scripts we can generate functions that map from
NBD protocol flags (eg. NBD_CMD_READ) to strings ("NBD_CMD_READ").
This works on GNU sed and with FreeBSD, also with GNU sed's --posix
option, so I guess the sed code is POSIX-compatible.
Rich.
2019 Sep 24
0
[PATCH nbdkit 2/4] common/protocol: Remove protostrings.sed, use bash+sed instead.
...Generated from nbd-protocol.h by generate-protostrings.sh. */
-# Prologue.
-1i\
-/* Generated from nbd-protocol.h by protostrings.sed. */\
-\#include "nbd-protocol.h"\
+#include "nbd-protocol.h"
+EOF
-# Match the precise sections of the source file.
-/^extern const char \*name_of_/,/^$/ {
+declare -A functions=(
+ [global_flag]=NBD_FLAG_FIXED_NEWSTYLE
+ [flag]=NBD_FLAG_HAS_FLAGS
+ [opt]=NBD_OPT_EXPORT_NAME
+ [rep]=NBD_REP_ACK
+ [info]=NBD_INFO_EXPORT
+ [reply]=NBD_REPLY_FLAG_DONE
+ [reply_type]=NBD_REPLY_TYPE_NONE
+ [cmd]=NBD_CMD_READ
+ [cmd_flag]=...
2018 Dec 07
0
[nbdkit PATCH 6/5] nbd: More debug details
Use new 'name_of_*' functions to offer a bit more details about
messages being forwarded on to the remote server.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
plugins/nbd/nbd.c | 8 +++++---
plugins/nbd/Makefile.am | 3 ++-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/plugins...
2012 Dec 10
0
dsync help?
...for some
time as backup.
The dsync should convert everything to Maildir, and it does... to an
extent. (linebrakes for easy viewing)
What I see, is that often, the /home/mail/xxx is NOT resulting in
/home/xxx/Maildir/cur
All mailboxes from /home/xxx, are properly converted to
/home/xxx/Maildir/.name_of_ box
Am I misunderstanding something?
I get it to work sometimes if I delete the ~/Maildir completely before
doing the dsync.
All, and any help most welcome,
Torbj?rn
for i in `cat /home2/torbjorn/SCRIPTS/userlist.txt`;
do dsync -D -v -f -u $i -c /etc/dovecot/alt_config/10-mail.MBOX.conf...
2012 Dec 19
0
Dsync help, new attempt
...for some
time as backup.
The dsync should convert everything to Maildir, and it does... to an
extent. (linebrakes for easy viewing)
What I see, is that often, the /home/mail/xxx is NOT resulting in
/home/xxx/Maildir/cur
All mailboxes from /home/xxx, are properly converted to
/home/xxx/Maildir/.name_of_ box
Am I misunderstanding something?
I get it to work sometimes if I delete the ~/Maildir completely before
doing the dsync.
All, and any help most welcome,
Torbj?rn
for i in `cat /home2/torbjorn/SCRIPTS/userlist.txt`;
do dsync -D -v -f -u $i -c /etc/dovecot/alt_config/10-mail.MBOX.conf...
2019 Sep 24
11
[PATCH nbdkit 0/4] common/protocol: Unify public <nbd-protocol.h>
We should have only one NBD protocol file. Let's make nbdkit's
version the canonical one, and use it in libnbd.
Rich.