search for: 694,7

Displaying 20 results from an estimated 72 matches for "694,7".

Did you mean: 194,7
2007 Mar 24
2
Subtle bug in do_basename
...bably something bad? Here's a quick fix, but maybe someone would want to find a better one: $ svn diff src/main/util.c Index: src/main/util.c =================================================================== --- src/main/util.c (revision 40876) +++ src/main/util.c (working copy) @@ -694,7 +694,8 @@ R_fixslash(buf); #endif /* remove trailing file separator(s) */ - while ( *(p = buf + strlen(buf) - 1) == fsp ) *p = '\0'; + if(strlen(p)) + while ( *(p = buf + strlen(buf) - 1) == fsp ) *p = '\0'; if ((p = Rf_strrchr(bu...
2017 Apr 06
0
[PATCH] virtio_net: tidy a couple debug statements
...lock(); if (unlikely(len > (unsigned long)ctx)) { - pr_debug("%s: rx error: len %u exceeds truesize 0x%lu\n", + pr_debug("%s: rx error: len %u exceeds truesize %lu\n", dev->name, len, (unsigned long)ctx); dev->stats.rx_length_errors++; goto err_skb; @@ -694,7 +694,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev, page = virt_to_head_page(buf); if (unlikely(len > (unsigned long)ctx)) { - pr_debug("%s: rx error: len %u exceeds truesize 0x%lu\n", + pr_debug("%s: rx error: len %u exceeds truesize %lu\n&quo...
2019 Mar 11
0
[PATCH] VMCI: Use BIT() macro for bit definitions
...HND 0x2 > -#define VMCI_FLAG_DG_DELAYED_CB 0x4 > +#define VMCI_FLAG_WELLKNOWN_DG_HND BIT(0) > +#define VMCI_FLAG_ANYCID_DG_HND BIT(1) > +#define VMCI_FLAG_DG_DELAYED_CB BIT(2) > > /* > * Maximum supported size of a VMCI datagram for routable datagrams. > @@ -694,7 +694,7 @@ struct vmci_qp_detach_msg { > }; > > /* VMCI Doorbell API. */ > -#define VMCI_FLAG_DELAYED_CB 0x01 > +#define VMCI_FLAG_DELAYED_CB BIT(0) > > typedef void (*vmci_callback) (void *client_data); > > -- ~Randy
2017 Apr 06
0
[PATCH] virtio_net: tidy a couple debug statements
...lock(); if (unlikely(len > (unsigned long)ctx)) { - pr_debug("%s: rx error: len %u exceeds truesize 0x%lu\n", + pr_debug("%s: rx error: len %u exceeds truesize %lu\n", dev->name, len, (unsigned long)ctx); dev->stats.rx_length_errors++; goto err_skb; @@ -694,7 +694,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev, page = virt_to_head_page(buf); if (unlikely(len > (unsigned long)ctx)) { - pr_debug("%s: rx error: len %u exceeds truesize 0x%lu\n", + pr_debug("%s: rx error: len %u exceeds truesize %lu\n&quo...
2012 Jul 03
2
[Patch] upssched broken in version 2.6.4 with command with two arguments
...1581-451 | http://www.ids-mannheim.de -------------- next part -------------- diff -u -r nut-2.6.4.orig/clients/upssched.c nut-2.6.4/clients/upssched.c --- nut-2.6.4.orig/clients/upssched.c 2012-05-11 10:29:33.000000000 +0200 +++ nut-2.6.4/clients/upssched.c 2012-07-03 16:22:24.000000000 +0200 @@ -694,7 +694,7 @@ snprintfcat(buf, sizeof(buf), " \"%s\"", pconf_encode(arg2, enc, sizeof(enc))); - snprintfcat(enc, sizeof(enc), "%s\n", buf); + snprintf(enc, sizeof(enc), "%s\n", buf); /* see if the parent needs to be started (and maybe start it) */
2019 Sep 12
0
[nbdkit PATCH 2/2] server: Add --mask-handshake option for integration testing
...(struct connection *conn) struct new_handshake handshake; uint16_t gflags; - gflags = NBD_FLAG_FIXED_NEWSTYLE | NBD_FLAG_NO_ZEROES; + gflags = (NBD_FLAG_FIXED_NEWSTYLE | NBD_FLAG_NO_ZEROES) & mask_handshake; debug ("newstyle negotiation: flags: global 0x%x", gflags); @@ -694,7 +694,7 @@ protocol_handshake_newstyle (struct connection *conn) /* ... which we check for accuracy. */ debug ("newstyle negotiation: client flags: 0x%x", conn->cflags); if (conn->cflags & ~gflags) { - nbdkit_error ("client requested unknown flags 0x%x", c...
2019 Sep 12
3
[nbdkit PATCH 0/2] Make client fallback testing easier
This is similar to the recent --no-sr option - it's a change that is unlikely to ever be used except by someone testing whether a client is compliant to the protocol, but in that niche case, it can be quite handy (it's a lot nicer to be able to purposefully cripple a server from the command line than from a one-off compile, when testing if a client's fallback for a spec-compliant but
2009 Nov 09
1
[PATCH libguestfs] indent with spaces, not TABs
...ot;realloc"); + goto quit; + } + *stderror = p; + memcpy (*stderror + se_size - r, buf, r); + } } } } diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 04a6a29..2181a31 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -694,7 +694,7 @@ fg_release (const char *path, struct fuse_file_info *fi) /* Emulate this by calling sync. */ static int fg_fsync(const char *path, int isdatasync, - struct fuse_file_info *fi) + struct fuse_file_info *fi) { int r; diff --git a/hivex/LICENSE b/hivex/LICE...
2019 Jan 25
0
[klibc:update-dash] eval: Restore input files in evalcommand
...lt;ben at decadent.org.uk> --- usr/dash/eval.c | 3 +++ usr/dash/input.c | 10 ++++++++-- usr/dash/input.h | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/usr/dash/eval.c b/usr/dash/eval.c index 811c28a4..5fd1c7c1 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -694,6 +694,7 @@ evalcommand(union node *cmd, int flags) #endif { struct localvar_list *localvar_stop; + struct parsefile *file_stop; struct redirtab *redir_stop; struct stackmark smark; union node *argp; @@ -722,6 +723,7 @@ evalcommand(union node *cmd, int flags) TRACE(("evalcommand(0x...
2020 Aug 21
0
[PATCH V2 3/3] vdpa_sim: implement get_iova_range()
...g, .set_config = vdpasim_set_config, .get_generation = vdpasim_get_generation, + .get_iova_range = vdpasim_get_iova_range, .dma_map = vdpasim_dma_map, .dma_unmap = vdpasim_dma_unmap, .free = vdpasim_free, @@ -683,6 +694,7 @@ static const struct vdpa_config_ops vdpasim_net_batch_config_ops = { .get_config = vdpasim_get_config, .set_config = vdpasim_set_config, .get_generation = vdpasim_get_generation, + .get_iova_range = vdpasim_get_iova_range, .set_map...
2002 Apr 02
0
[patch] fix ext3 i_blocks accounting
...r; + int performed_allocation = 0; struct super_block * sb; struct ext3_group_desc * gdp; struct ext3_super_block * es; @@ -644,8 +645,7 @@ int ext3_new_block (handle_t *handle, st } /* No space left on the device */ - unlock_super (sb); - return 0; + goto out; search_back: /* @@ -694,6 +694,7 @@ got_block: J_ASSERT_BH(bh, !ext3_test_bit(j, bh->b_data)); BUFFER_TRACE(bh, "setting bitmap bit"); ext3_set_bit(j, bh->b_data); + performed_allocation = 1; #ifdef CONFIG_JBD_DEBUG { @@ -815,6 +816,11 @@ out: ext3_std_error(sb, fatal); } unlock_super (sb...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Restore input files in evalcommand
...lt;ben at decadent.org.uk> --- usr/dash/eval.c | 3 +++ usr/dash/input.c | 10 ++++++++-- usr/dash/input.h | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/usr/dash/eval.c b/usr/dash/eval.c index 26055493..e28e56cb 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -694,6 +694,7 @@ evalcommand(union node *cmd, int flags) #endif { struct localvar_list *localvar_stop; + struct parsefile *file_stop; struct redirtab *redir_stop; struct stackmark smark; union node *argp; @@ -722,6 +723,7 @@ evalcommand(union node *cmd, int flags) TRACE(("evalcommand(0x...
2018 Sep 08
0
[PATCH nbdkit v2 2/6] main: Tighten up characters permitted in config keys.
...id); static uid_t parseuser (const char *); static gid_t parsegroup (const char *); static unsigned int get_socket_activation (void); +static int is_config_key (const char *key, size_t len); struct debug_flag *debug_flags; /* -D */ int exit_with_parent; /* --exit-with-parent */ @@ -694,7 +695,7 @@ main (int argc, char *argv[]) magic_config_key = backend->magic_config_key (backend); for (i = 0; optind < argc; ++i, ++optind) { p = strchr (argv[optind], '='); - if (p) { /* key=value */ + if (p && is_config_key (argv[optind],...
2018 Sep 10
0
[PATCH nbdkit v3 2/6] main: Tighten up characters permitted in config keys.
...id); static uid_t parseuser (const char *); static gid_t parsegroup (const char *); static unsigned int get_socket_activation (void); +static int is_config_key (const char *key, size_t len); struct debug_flag *debug_flags; /* -D */ int exit_with_parent; /* --exit-with-parent */ @@ -694,7 +695,7 @@ main (int argc, char *argv[]) magic_config_key = backend->magic_config_key (backend); for (i = 0; optind < argc; ++i, ++optind) { p = strchr (argv[optind], '='); - if (p) { /* key=value */ + if (p && is_config_key (argv[optind],...
2017 Jan 26
0
[nbdkit PATCH v2 4/6] plugins: Add new nbdkit_set_error() utility function
...7 +682,7 @@ _handle_request (struct connection *conn, case NBD_CMD_WRITE_ZEROES: r = plugin_zero (conn, count, offset, !(flags & NBD_CMD_FLAG_NO_HOLE)); if (r == -1) { - *error = errno ? errno : EIO; + *error = _get_error (); return 0; } break; @@ -676,7 +694,7 @@ _handle_request (struct connection *conn, if (flush_after_command) { r = plugin_flush (conn); if (r == -1) { - *error = errno ? errno : EIO; + *error = _get_error (); return 0; } } diff --git a/src/errors.c b/src/errors.c index adb2db7..4abab5a 100644 ---...
2016 Mar 03
2
[RFC kernel 0/2]A PV solution for KVM live migration optimization
The current QEMU live migration implementation mark the all the guest's RAM pages as dirtied in the ram bulk stage, all these pages will be processed and that takes quit a lot of CPU cycles. >From guest's point of view, it doesn't care about the content in free pages. We can make use of this fact and skip processing the free pages in the ram bulk stage, it can save a lot CPU cycles
2016 Mar 03
2
[RFC kernel 0/2]A PV solution for KVM live migration optimization
The current QEMU live migration implementation mark the all the guest's RAM pages as dirtied in the ram bulk stage, all these pages will be processed and that takes quit a lot of CPU cycles. >From guest's point of view, it doesn't care about the content in free pages. We can make use of this fact and skip processing the free pages in the ram bulk stage, it can save a lot CPU cycles
2019 Feb 25
0
[PATCH 2/3] v2v: add Var_expander
...insertions(+), 2 deletions(-) create mode 100644 v2v/dummy.c create mode 100644 v2v/var_expander.ml create mode 100644 v2v/var_expander.mli create mode 100644 v2v/var_expander_tests.ml diff --git a/.gitignore b/.gitignore index 29d3e3aae..9a448fc4e 100644 --- a/.gitignore +++ b/.gitignore @@ -694,6 +694,7 @@ Makefile.in /v2v/uefi.ml /v2v/uefi.mli /v2v/v2v_unit_tests +/v2v/var_expander_tests /v2v/virt-v2v /v2v/virt-v2v.1 /v2v/virt-v2v-copy-to-local diff --git a/v2v/Makefile.am b/v2v/Makefile.am index 2312812fb..f196be81d 100644 --- a/v2v/Makefile.am +++ b/v2v/Makefile.am @@ -98,6 +98,7...
2008 Jul 12
4
[PATCH] tun: Fix/rewrite packet filtering logic
...{ - DBG(KERN_DEBUG "%s: tun_chr_readv: rejected: %s\n", - tun->dev->name, print_mac(mac, addr)); - kfree_skb(skb); - continue; - } + ret = tun_put_user(tun, skb, (struct iovec *) iv, len); + kfree_skb(skb); + break; } current->state = TASK_RUNNING; @@ -647,12 +694,7 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) tun = netdev_priv(dev); tun->dev = dev; tun->flags = flags; - /* Be promiscuous by default to maintain previous behaviour. */ - tun->if_flags = IFF_PROMISC; - /* Generate random Ethernet address....
2008 Jul 12
4
[PATCH] tun: Fix/rewrite packet filtering logic
...{ - DBG(KERN_DEBUG "%s: tun_chr_readv: rejected: %s\n", - tun->dev->name, print_mac(mac, addr)); - kfree_skb(skb); - continue; - } + ret = tun_put_user(tun, skb, (struct iovec *) iv, len); + kfree_skb(skb); + break; } current->state = TASK_RUNNING; @@ -647,12 +694,7 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) tun = netdev_priv(dev); tun->dev = dev; tun->flags = flags; - /* Be promiscuous by default to maintain previous behaviour. */ - tun->if_flags = IFF_PROMISC; - /* Generate random Ethernet address....