Displaying 20 results from an estimated 38 matches for "get_cont".
Did you mean:
get_conn
2007 Apr 18
0
[PATCH 10/12] yet-another-redundant-accessor
...16) & 0x0000ffff) | \
- (((desc)->b << 16) & 0x00ff0000) | \
- ( (desc)->b & 0xff000000) )
-
-#define GET_LIMIT(desc) ( \
- ((desc)->a & 0x0ffff) | \
- ((desc)->b & 0xf0000) )
-
-#define GET_32BIT(desc) (((desc)->b >> 22) & 1)
-#define GET_CONTENTS(desc) (((desc)->b >> 10) & 3)
-#define GET_WRITABLE(desc) (((desc)->b >> 9) & 1)
-#define GET_LIMIT_PAGES(desc) (((desc)->b >> 23) & 1)
-#define GET_PRESENT(desc) (((desc)->b >> 15) & 1)
-#define GET_USEABLE(desc) (((desc)->b >> 20)...
2007 Apr 18
0
[PATCH 10/12] yet-another-redundant-accessor
...16) & 0x0000ffff) | \
- (((desc)->b << 16) & 0x00ff0000) | \
- ( (desc)->b & 0xff000000) )
-
-#define GET_LIMIT(desc) ( \
- ((desc)->a & 0x0ffff) | \
- ((desc)->b & 0xf0000) )
-
-#define GET_32BIT(desc) (((desc)->b >> 22) & 1)
-#define GET_CONTENTS(desc) (((desc)->b >> 10) & 3)
-#define GET_WRITABLE(desc) (((desc)->b >> 9) & 1)
-#define GET_LIMIT_PAGES(desc) (((desc)->b >> 23) & 1)
-#define GET_PRESENT(desc) (((desc)->b >> 15) & 1)
-#define GET_USEABLE(desc) (((desc)->b >> 20)...
2007 Apr 18
0
[PATCH 11/14] i386 / Eliminate yet another redundant accessor
...16) & 0x0000ffff) | \
- (((desc)->b << 16) & 0x00ff0000) | \
- ( (desc)->b & 0xff000000) )
-
-#define GET_LIMIT(desc) ( \
- ((desc)->a & 0x0ffff) | \
- ((desc)->b & 0xf0000) )
-
-#define GET_32BIT(desc) (((desc)->b >> 22) & 1)
-#define GET_CONTENTS(desc) (((desc)->b >> 10) & 3)
-#define GET_WRITABLE(desc) (((desc)->b >> 9) & 1)
-#define GET_LIMIT_PAGES(desc) (((desc)->b >> 23) & 1)
-#define GET_PRESENT(desc) (((desc)->b >> 15) & 1)
-#define GET_USEABLE(desc) (((desc)->b >> 20)...
2007 Apr 18
0
[PATCH 11/14] i386 / Eliminate yet another redundant accessor
...16) & 0x0000ffff) | \
- (((desc)->b << 16) & 0x00ff0000) | \
- ( (desc)->b & 0xff000000) )
-
-#define GET_LIMIT(desc) ( \
- ((desc)->a & 0x0ffff) | \
- ((desc)->b & 0xf0000) )
-
-#define GET_32BIT(desc) (((desc)->b >> 22) & 1)
-#define GET_CONTENTS(desc) (((desc)->b >> 10) & 3)
-#define GET_WRITABLE(desc) (((desc)->b >> 9) & 1)
-#define GET_LIMIT_PAGES(desc) (((desc)->b >> 23) & 1)
-#define GET_PRESENT(desc) (((desc)->b >> 15) & 1)
-#define GET_USEABLE(desc) (((desc)->b >> 20)...
2007 Apr 18
2
[PATCH 16/21] i386 Eliminate duplicate segment macros
...16) & 0x0000ffff) | \
- (((desc)->b << 16) & 0x00ff0000) | \
- ( (desc)->b & 0xff000000) )
-
-#define GET_LIMIT(desc) ( \
- ((desc)->a & 0x0ffff) | \
- ((desc)->b & 0xf0000) )
-
-#define GET_32BIT(desc) (((desc)->b >> 22) & 1)
-#define GET_CONTENTS(desc) (((desc)->b >> 10) & 3)
-#define GET_WRITABLE(desc) (((desc)->b >> 9) & 1)
-#define GET_LIMIT_PAGES(desc) (((desc)->b >> 23) & 1)
-#define GET_PRESENT(desc) (((desc)->b >> 15) & 1)
-#define GET_USEABLE(desc) (((desc)->b >> 20)...
2007 Apr 18
2
[PATCH 16/21] i386 Eliminate duplicate segment macros
...16) & 0x0000ffff) | \
- (((desc)->b << 16) & 0x00ff0000) | \
- ( (desc)->b & 0xff000000) )
-
-#define GET_LIMIT(desc) ( \
- ((desc)->a & 0x0ffff) | \
- ((desc)->b & 0xf0000) )
-
-#define GET_32BIT(desc) (((desc)->b >> 22) & 1)
-#define GET_CONTENTS(desc) (((desc)->b >> 10) & 3)
-#define GET_WRITABLE(desc) (((desc)->b >> 9) & 1)
-#define GET_LIMIT_PAGES(desc) (((desc)->b >> 23) & 1)
-#define GET_PRESENT(desc) (((desc)->b >> 15) & 1)
-#define GET_USEABLE(desc) (((desc)->b >> 20)...
2020 Oct 02
0
[libnbd PATCH v2 2/2] info: List available meta-contexts
...ching what 'qemu-nbd --list' already
does). Note that this requires some shuffling: listing meta exports
requires being in opt mode, but is easiest to do in list_one_export(),
which requires setting opt_mode in more code paths, and deferring
ready mode until the last possible minute during get_content().
As written, the code displays the list in reverse order from how the
server presented it, thanks to my use of a simple linked list. We
could use a different data type if we don't like the data being
reversed, although the information being presented really is a set
with no inherent mean...
2007 Jul 31
2
merb speed
...TTPAccess2::Client.new
client.set_cookie_store("cookie.dat")
client.post(url, {:user_login => login, :user_password => pwd})
client_time = []
all_client_avg = []
all_server_avg = []
$total_client_avg = []
$total_server_avg = []
num_iterations.times do |i|
folders = YAML.load(client.get_content("#{url}/folder/all_user_folders"))
folders.each do |folder|
client_time << Benchmark.realtime do
response_size = client.post("#{url}/resources/set_current_folder",
{:folder => $folder}).content.length
end
end
client_avg = (client_time.inject(0) {|sum, elem...
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console.
BUt I got the following error.
Anyone knows why?
>> Net::HTTP.get_print ''www.google.com'', ''index.html''
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj''
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2020 Sep 26
1
[PATCH nbdinfo proposal] info: Add a --map option for displaying allocation metadata
This is a rough-and-ready implementation of nbdinfo --map option, to
display the allocation and other metadata of NBD exports. I only
tested it lightly against nbdkit. It needs at least some tests.
Command like these should work:
nbdinfo --map nbd://localhost
nbdinfo --map=qemu:dirty-bitmap nbd://localhost
Rich.
2020 Oct 16
3
[libnbd PATCH] info: Add support for new 'qemu-nbd -A' qemu:allocation-depth
A rather trivial decoding; we may enhance it further if qemu extends
things to give an integer depth alongside its tri-state encoding.
---
I'll wait to push this to libnbd until the counterpart qemu patches
land upstream, although it looks like I've got positive review.
info/nbdinfo.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/info/nbdinfo.c b/info/nbdinfo.c
index
2020 Oct 02
4
[libnbd PATCH v2 0/2] opt_list_meta_context
In v2: ack'ed preliminary patches have been pushed, and I've added a
lot of testsuite coverage as well as putting the new API to use in
nbdinfo.
Eric Blake (2):
api: Add nbd_opt_list_meta_context
info: List available meta-contexts
lib/internal.h | 1 +
generator/API.ml | 84 ++++++++-
2015 Aug 10
0
[PATCH 3/4] v2v: copy virtio drivers without guestfs handle leak
...riant -> true)
- ) drivers in
-
- if verbose () then (
- printf "virtio-win driver files matching this guest:\n";
- List.iter print_virtio_win_driver_file drivers;
- flush stdout
- );
-
- List.iter (
- fun driver ->
- let content = driver.vwd_get_contents () in
- g#write (driverdir // driver.vwd_filename) content
- ) drivers
+ if is_directory virtio_win then (
+ let cmd = sprintf "cd %s && find -type f" (quote virtio_win) in
+ let paths = external_command cmd in
+ List.iter (
+ fun path ->...
2020 Sep 26
0
[PATCH nbdinfo v2] info: Add a --map option for displaying allocation metadata.
...map = NULL;
static bool size_only = false;
static struct export_list {
@@ -49,6 +50,10 @@ static void list_one_export (struct nbd_handle *nbd, const char *desc,
static void list_all_exports (struct nbd_handle *nbd1, const char *uri);
static void print_json_string (const char *);
static char *get_content (struct nbd_handle *, int64_t size);
+static int extent_callback (void *user_data, const char *metacontext,
+ uint64_t offset,
+ uint32_t *entries, size_t nr_entries,
+ int *error);
static void __attribute__((nor...
2018 Aug 02
1
initramfs_init() changes in 6.04
...d_archive(initramfs, "/INITRD")
+local initramfs
+if sl.initramfs_init ~= nil then
+??initramfs = sl.initramfs_init()
+??sl.initramfs_load_archive(initramfs, "/INITRD")
+else
+??initramfs = sl.initramfs()
+??initramfs.load(initramfs, "/INITRD")
+end
?
?local cmdline =??get_content("/CMDLINE")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5213 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20180802/030ad700/attachment.bin>
2015 Oct 06
0
[PATCH 3/5] mllib: Add (Char|String).(lower|upper)case_ascii functions.
...sub data 0 (len-8)) ^ "_uninst.exe"
else
data in
diff --git a/v2v/utils.ml b/v2v/utils.ml
index 23d9e51..cdf7535 100644
--- a/v2v/utils.ml
+++ b/v2v/utils.ml
@@ -230,10 +230,10 @@ let find_virtio_win_drivers virtio_win =
fun (path, original_source, basename, get_contents) ->
try
(* Lowercased path, since the ISO may contain upper or lowercase
- * path elements. XXX This won't work if paths contain non-ASCII.
+ * path elements.
*)
- let lc_path = String.lowercase path in
- let lc_basen...
2023 Oct 08
1
[libnbd PATCH 2/2] info: Show human sizes for block_size values
...;> @@ -35,6 +35,7 @@
>> #include "nbdinfo.h"
>>
>> static void show_boolean (const char *name, bool cond);
>> +static void show_size (const char *name, int64_t size);
>> static int collect_context (void *opaque, const char *name);
>> static char *get_content (struct nbd_handle *, int64_t size);
>>
>> @@ -181,13 +182,9 @@ show_one_export (struct nbd_handle *nbd, const char *desc,
>> show_boolean ("can_trim", can_trim);
>> if (can_zero >= 0)
>> show_boolean ("can_zero", can_zero);...
2020 Oct 27
0
Re: [libnbd PATCH] info: Add support for new 'qemu-nbd -A' qemu:allocation-depth
...alloc'd
string for a description.
Fixes: 71455c021
---
info/nbdinfo.c | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/info/nbdinfo.c b/info/nbdinfo.c
index 2b22f51..b152f28 100644
--- a/info/nbdinfo.c
+++ b/info/nbdinfo.c
@@ -767,28 +767,30 @@ get_content (struct nbd_handle *nbd, int64_t size)
}
/* Callback handling --map. */
-static const char *
+static char *
extent_description (const char *metacontext, uint32_t type)
{
+ char *ret;
+
if (strcmp (metacontext, "base:allocation") == 0) {
switch (type) {
- case 0: return...
2015 Oct 13
2
[PATCH v2 2/4] v2v: copy virtio drivers without guestfs handle leak
...riant -> true)
- ) drivers in
-
- if verbose () then (
- printf "virtio-win driver files matching this guest:\n";
- List.iter print_virtio_win_driver_file drivers;
- flush stdout
- );
-
- List.iter (
- fun driver ->
- let content = driver.vwd_get_contents () in
- g#write (driverdir // driver.vwd_filename) content
- ) drivers
+ if is_directory virtio_win then (
+ let cmd = sprintf "cd %s && find -type f" (quote virtio_win) in
+ let paths = external_command cmd in
+ List.iter (
+ fun path ->...
2015 Jun 23
0
[PATCH v2] v2v: Support loading virtio-win drivers from virtio-win.iso (RHBZ#1234351).
...try
+ let viostor_sys_file =
+ List.find
+ (fun { vwd_filename = filename } -> filename = "viostor.sys")
+ drivers in
+ (* Get the actual file contents of the .sys file. *)
+ let content = viostor_sys_file.vwd_get_contents () in
+ let target = sprintf "%s/system32/drivers/viostor.sys" systemroot in
+ let target = g#case_sensitive_path target in
+ g#write target content;
+ add_viostor_to_critical_device_database root current_cs;
+ Virtio_blk
+ wit...