search for: 0123456789abcdef

Displaying 20 results from an estimated 50 matches for "0123456789abcdef".

2018 Jan 16
4
[PATCH v3 0/3] copy GPT attributes
Hi all, Here is v3 of the series, taking Richard's comments in account. Cédric Bosdonnat (3): daemon: make sgdisk_info_extract_uuid_field more generic New APIs: part_set_gpt_attributes and part_get_gpt_attributes resize: copy GPT partition flags daemon/parted.ml | 45 +++++++++++++++++++++++++++++++++++---------- daemon/parted.mli | 2 ++ generator/actions_core.ml
2018 Jan 15
6
[PATCH v2 0/3] copying gpt attributes
Hi all, Here is the latest version of the series addressing Pino's comments. Cédric Bosdonnat (3): daemon: make sgdisk_info_extract_uuid_field more generic New APIs: part_set_gpt_attributes and part_get_gpt_attributes resize: copy GPT partition flags daemon/parted.ml | 45 +++++++++++++++++++++++++++++++++++---------- daemon/parted.mli | 3 +++
2018 Jan 10
6
[PATCH 0/3] Handle GPT attribute flags
Hi all, Here is the series fixing the bug I mentioned on IRC regarding the GPT attribute flags to copy to the new disk in a virt-resize. Cédric Bosdonnat (3): daemon: make sgdisk_info_extract_uuid_field more generic New APIs: part_set_gpt_attributes and part_get_gpt_attributes resize: copy GPT partition flags daemon/parted.ml | 34 +++++++++++++++++++++++++++-------
2018 Jan 10
0
[PATCH 1/3] daemon: make sgdisk_info_extract_uuid_field more generic
...ns(-) diff --git a/daemon/parted.ml b/daemon/parted.ml index d6638867a..cf1a54a08 100644 --- a/daemon/parted.ml +++ b/daemon/parted.ml @@ -124,12 +124,16 @@ let part_get_parttype device = | _ -> failwithf "%s: cannot parse the output of parted" device +let hex_chars = "0123456789ABCDEF" + let rec part_get_gpt_type device partnum = - sgdisk_info_extract_uuid_field device partnum "Partition GUID code" + sgdisk_info_extract_field device partnum "Partition GUID code" + ("-" ^ hex_chars) and part_get_gpt_guid device par...
2018 Jan 15
0
[PATCH v2 1/3] daemon: make sgdisk_info_extract_uuid_field more generic
...device partnum "Partition GUID code" -and part_get_gpt_guid device partnum = - sgdisk_info_extract_uuid_field device partnum "Partition unique GUID" +let extract_guid value = + (* The value contains only valid GUID characters. *) + String.sub value 0 (String.span value "-0123456789ABCDEF") -and sgdisk_info_extract_uuid_field device partnum field = +let sgdisk_info_extract_field device partnum field extractor = if partnum <= 0 then failwith "partition number must be >= 1"; udev_settle (); @@ -167,13 +166,16 @@ and sgdisk_info_extract_uuid_field device...
2004 Aug 06
1
Build problems with libshout on Mac OS X 10.2
FYI, For anyone trying to build libshout on Mac OS X 10.2 and having problems change line 16 of encode.c from: const char urlencstring[16] = "0123456789abcdef"; to const char urlencstring[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; Apparently Apple's gcc (or maybe its ju...
2014 Feb 04
0
[PATCH 1/3] daemon: parted: refactor sgdisk info parsing code
...f SEARCH /* The value starts after the colon */ char *value = colon + 1; /* Skip any leading whitespace */ value += strspn (value, " \t"); - /* The value contains only valid GUID characters */ - size_t value_len = strspn (value, "-0123456789ABCDEF"); - - char *ret = malloc (value_len + 1); + /* Extract the actual information from the field. */ + char *ret = extract (value); if (ret == NULL) { - reply_with_perror ("malloc"); + /* The extraction function already sends the error. */...
2018 Jan 16
0
[PATCH v3 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes
..._stderr:true + "sgdisk" [ device; "-A"; arg ] in + if r <> 0 then + failwithf "sgdisk: %s" err; + + udev_settle () + let extract_guid value = (* The value contains only valid GUID characters. *) String.sub value 0 (String.span value "-0123456789ABCDEF") +let extract_hex value = + (* The value contains only valid numeric characters. *) + let str = String.sub value 0 (String.span value "0123456789ABCDEF") in + Int64.of_string ("0x" ^ str) + let sgdisk_info_extract_field device partnum field extractor = if partnum...
2018 Jan 15
0
[PATCH v2 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes
..._stderr:true + "sgdisk" [ device; "-A"; arg ] in + if r <> 0 then + failwithf "sgdisk: %s" err; + + udev_settle () + let extract_guid value = (* The value contains only valid GUID characters. *) String.sub value 0 (String.span value "-0123456789ABCDEF") +let extract_hex value = + (* The value contains only valid numeric characters. *) + let str = String.sub value 0 (String.span value "0123456789ABCDEF") in + Int64.of_string ("0x" ^ str) + let sgdisk_info_extract_field device partnum field extractor = if partnum...
2018 Jan 10
0
[PATCH 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes
...ons(-) diff --git a/daemon/parted.ml b/daemon/parted.ml index cf1a54a08..5f553c2da 100644 --- a/daemon/parted.ml +++ b/daemon/parted.ml @@ -124,7 +124,19 @@ let part_get_parttype device = | _ -> failwithf "%s: cannot parse the output of parted" device -let hex_chars = "0123456789ABCDEF" +let part_set_gpt_attributes device partnum attributes = + if partnum <= 0 then failwith "partition number must be >= 1"; + + udev_settle (); + + let arg = string_of_int partnum ^ ":=:" ^ attributes in + let r, _, err = + commandr ~fold_stdout_on_stderr:true +...
2002 May 09
4
make distprep broken?
Hello All, Doing a make distprep doesn't seem to work anymore: $ make -f Makefile.in distprep make: @SH@: Command not found make: *** [catman-do] Error 127 I've seen this on AIX & Redhat (gnu make) and Solaris (native make). I suspect this occurs on most platforms. Is this still the recommended way of autoreconf'ing CVS releases for building? -Daz.
2016 Jan 08
2
Is it a va_arg bug in clang?
...ker, Format); for (int i = 0; i < VaNum; i++ ) { Value = va_arg (Marker, int); printf("Value = 0x%llx\n", Value); } va_end (Marker); } int main() { Foo_va_list (16, "0123456789abcdef= %x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x \n", 0,1,2,3,4,5,6,7,8,9,0xa,0xb,0xc,0xd,0xe,0xf); return 0; } The expected output are: Value = 0x0 Value = 0x1 Value = 0x2 Value = 0x3 Value = 0x4 Value = 0x5 Value = 0x6 Value = 0x7 Value = 0x8 Value = 0x9 Value = 0xa Value = 0xb Value = 0xc Value = 0xd V...
2008 Feb 26
11
Is there way to trace memory in the dtrace ?
...daddr->DTE_MAC.lsap_add, 80); trace(callingaddr->link_id); tracemem(callingaddr->DTE_MAC.lsap_add, 80); } 0 -> N_conreq 255 <===== first link_id 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef <===== first tracemem 0: 12 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .0.............. 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 20: 00 ff 00 03 45 60 00 00 00 00 00 00 00 00 00 00 ....E`.......... 30: 00 00 00 00 00 00 00 00 00...
2000 Jan 06
1
bsd-snprintf.c and NeXT.
I'm wonder if anyone happens to have a simplier (slower) version of bsd-snprintf.c. It seems NeXT 3.3 (unsure about 4.2) is missing mprotect(). If I could get something to replace that for a while and fix some of theses utmp in login.c issues I may have a rough port NeXT to black hardware.=) Thanks
1999 Dec 10
0
snprintf from postgresql
...ign %d, ljust %d, len %d, zpad * %d\n", value, base, dosign, ljust, len, zpad )); */ uvalue = value; if (dosign) { if (value < 0) { signvalue = '-'; uvalue = -value; } } if (base < 0) { caps = 1; base = -base; } do { convert[place++] = (caps ? "0123456789ABCDEF" : "0123456789abcdef") [uvalue % (unsigned) base]; uvalue = (uvalue / (unsigned) base); } while (uvalue); convert[place] = 0; if (len < 0) { /* this could happen with a "*" width spec */ ljust = 1; len = -len; } padlen = len - place; if (padlen < 0)...
2008 Nov 27
0
tracemem again
Hi, I am using tracemem() to dump some memory contents. When the contents of the memory contain a mix of binary and ascii, the output looks like: 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0: 2f 79 2e 20 2e 9e 2e fc fe 2e 2e 38 2e 0a 34 38 /y. .......8..48 10: 34 32 35 2c 20 72 65 6d 6f 74 65 20 69 70 3a 20 425, remote ip: 20: 31 32 37 2e 30 2e 30 2e 31 2c 20 72 65 6d 6f 74 127.0.0.1, remot ... But when the contents are all ascii, the ou...
2011 Dec 08
0
[hivex] [PATCH 1/8] Add test hive and generator script
...+h = hivex.Hivex ("%s/../images/minimal" % srcdir, + write = True) +assert h + +root = h.root () +assert root + +h.node_add_child (root, "ModerateValueParent") + +mvp = h.node_get_child (root, "ModerateValueParent") +assert mvp + +moderate_value = "0123456789ABCDEF" + +values = [ + { "key": "3Bytes", "t": 3, "value": moderate_value[:3] }, + { "key": "16Bytes", "t": 3, "value": moderate_value }, + { "key": "30Bytes", "t": 3, "value&q...
2016 Jan 09
2
[cfe-dev] Is it a va_arg bug in clang?
...ker, Format); for (int i = 0; i < VaNum; i++ ) { Value = va_arg (Marker, int); printf("Value = 0x%llx\n", Value); } va_end (Marker); } int main() { Foo_va_list (16, "0123456789abcdef= %x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x \n", 0,1,2,3,4,5,6,7,8,9,0xa,0xb,0xc,0xd,0xe,0xf); return 0; } The expected output are: Value = 0x0 Value = 0x1 Value = 0x2 Value = 0x3 Value = 0x4 Value = 0x5 Value = 0x6 Value = 0x7 Value = 0x8 Value = 0x9 Value = 0xa Value = 0xb Value = 0xc Value = 0xd V...
2014 Feb 04
6
[PATCH 0/3] virt-resize: preserve GPT partitions label
Hi, attached there are few patches to implement a way to get the label of GPT partitions (refactoring an existing function and adding a new daemon API) and using it in virt-resize to restore them when copying partitions. Thanks, Pino Toscano (3): daemon: parted: refactor sgdisk info parsing code New API: part-get-name (RHBZ#593511). resize: preserve GPT partition names (RHBZ#1060404).
2005 Jan 19
1
PROPOSAL: --link-hash-dest, additional linking of files to their HASH values
...y. Anywhere from hundreds of thousands to tens of millions of files shouldn't waste too many inodes or put a gross number of files into each directory. The code to generate the hash directory name is parameterized though, and could easily generate 1-4 layers. static char hex_char[16] = "0123456789abcdef"; int prefixdirs = 2; ... int digestlength; digestlength = MD4_DIGEST_LENGTH; ... const char *hashdir ... hashdirlen = strlen(hashdir); hashpath = malloc(hashdirlen+digestlength*3+1); strcpy(hashpath,hashdir); hashpath[hashdirlen]='/'; for (i=0;i<prefixdirs;i++) {...