search for: value_size

Displaying 17 results from an estimated 17 matches for "value_size".

2016 Nov 16
0
[PATCH 2/2] libvirt: read secrets of disks (RHBZ#1392798)
...T xmlXPathObjectPtr xpsecrettype = NULL; + CLEANUP_XMLXPATHFREEOBJECT xmlXPathObjectPtr xpsecretuuid = NULL; + CLEANUP_XMLXPATHFREEOBJECT xmlXPathObjectPtr xpsecretusage = NULL; + CLEANUP_FREE char *typestr = NULL; + unsigned char *value = NULL; + size_t value_size = 0; + username = xPathObjectGetString (doc, xpusername); debug (g, "disk[%zu]: username: %s", i, username); + + /* <secret type="...">. Mandatory given <auth> is specified. */ + xpsecrettype = xmlXPathEvalExpression (BAD_CAST...
2016 Nov 16
3
[PATCH 1/2] libvirt: un-duplicate XPath code
Move the checks for empty xmlXPathObjectPtr, and for extracting the result string out of it, to a new helper functions. This is just code motion, there should be no behaviour changes. --- src/libvirt-domain.c | 122 +++++++++++++++++++++------------------------------ 1 file changed, 50 insertions(+), 72 deletions(-) diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 4d4142d..baab307
2009 Feb 11
2
[PATCH 0/2] ocfs2: two fixes for xattr
Hi, For EAs data structure in inode/block are little different from them in bucket. These two patches try to make them same for the most part. The first patch set xh_free_start and xh_name_value_len when EAs in inode/block. xh_free_start is useful to keep the minimum offset of the xattr name/value. But xh_name_value_len is not very useful because we don't have "hole" when EAs in
2009 Feb 16
3
[PATCH 0/2] ocfs2: two fixes for xattr -v2
Hi, I have fixed the problems in version 1 patches. These two patches based on the latest main line kernel. Thanks, tiger > For EAs data structure in inode/block are little different from them in > bucket. These two patches try to make them same for the most part. > > The first patch set xh_free_start and xh_name_value_len when EAs in > inode/block. xh_free_start is useful to
2007 Nov 15
1
program I used to test xattrs
...f(char)); memset((*filelist)[i], 0, size * sizeof(char)); snprintf((*filelist)[i], size * sizeof(char), "%s/%s", dir, namelist[temp]->d_name); i++; free(namelist[temp]); } free(namelist); return n; } static int xattr_create_test(int files, char **filelist) { int i = 0, value_size = 8, ret; char name[80], *value = "myvalue\0"; while (files--) { for (i = 0; i < 100; i++) { snprintf(name, 80, "security.josef%d\0", i); ret = setxattr(filelist[files], name, value, value_size, 0); if (ret) { printf("error creating xattr: %d...
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...buf); - - if (header->h_magic != EXT2_EXT_ATTR_MAGIC || - header->h_blocks != 1) - return -EIO; - error = ext2_xattr_check_names(EXT2_XATTR_BFIRST(buf), buf + size); - return error; -} - -static int ext2_xattr_check_entry(struct ext2_ext_attr_entry *entry, - size_t size) -{ - size_t value_size = entry->e_value_size; - - if (entry->e_value_block != 0 || value_size > size || - entry->e_value_offs + value_size > size) - return -EIO; - return 0; -} - -#define EXT2_ACL_VERSION 0x0001 - -typedef struct { - __le16 e_tag; - __le16 e_perm; - __le32 e_id; -} ext2_acl_entry;...
2009 Jun 30
0
quwstion about elrm package for Exact Logistic Regrassion
Hi I am a new R user and I did try elrm package to do Exact Logistic regression for my dataset ( about 170 patients with a binary dependent variable against age and 6 other binary covariates), I did not have n column because it was about individuals, I made n column with 1 for each individual, here is my code and result: > > #### Libraries needed #### > >
2010 Dec 08
0
No subject
...* in utf16. + */ + keylen =3D utf8s_to_utf16s(key_name, strlen(key_name), + (wchar_t *)kvp_data->data.key); + kvp_data->data.key_size =3D 2*(keylen + 1); /* utf16 encoding */ + valuelen =3D utf8s_to_utf16s(value, strlen(value), + (wchar_t *)kvp_data->data.value); + kvp_data->data.value_size =3D 2*(valuelen + 1); /* utf16 encoding = */ + + kvp_data->data.value_type =3D REG_SZ; /* all our values are = strings */ + icmsghdrp->status =3D HV_S_OK; + +response_done: + icmsghdrp->icflags =3D ICMSGHDRFLAG_TRANSACTION | ICMSGHDRFLAG_RESP= ONSE; + + vmbus_sendpacket(channel, buf, buf_l...
2010 Dec 08
0
No subject
...* in utf16. + */ + keylen =3D utf8s_to_utf16s(key_name, strlen(key_name), + (wchar_t *)kvp_data->data.key); + kvp_data->data.key_size =3D 2*(keylen + 1); /* utf16 encoding */ + valuelen =3D utf8s_to_utf16s(value, strlen(value), + (wchar_t *)kvp_data->data.value); + kvp_data->data.value_size =3D 2*(valuelen + 1); /* utf16 encoding = */ + + kvp_data->data.value_type =3D REG_SZ; /* all our values are = strings */ + icmsghdrp->status =3D HV_S_OK; + +response_done: + icmsghdrp->icflags =3D ICMSGHDRFLAG_TRANSACTION | ICMSGHDRFLAG_RESP= ONSE; + + vmbus_sendpacket(channel, buf, buf_l...
2010 Dec 17
0
[PATCH 3/4] Staging: hv: Implement key/value pair (KVP)
...ed + * in utf16. + */ + keylen = utf8s_to_utf16s(key_name, strlen(key_name), + (wchar_t *)kvp_data->data.key); + kvp_data->data.key_size = 2*(keylen + 1); /* utf16 encoding */ + valuelen = utf8s_to_utf16s(value, strlen(value), + (wchar_t *)kvp_data->data.value); + kvp_data->data.value_size = 2*(valuelen + 1); /* utf16 encoding */ + + kvp_data->data.value_type = REG_SZ; /* all our values are strings */ + icmsghdrp->status = HV_S_OK; + +response_done: + icmsghdrp->icflags = ICMSGHDRFLAG_TRANSACTION | ICMSGHDRFLAG_RESPONSE; + + vmbus_sendpacket(channel, recv_buffer, buf_len, re...
2010 Dec 17
0
[PATCH 3/4] Staging: hv: Implement key/value pair (KVP)
...ed + * in utf16. + */ + keylen = utf8s_to_utf16s(key_name, strlen(key_name), + (wchar_t *)kvp_data->data.key); + kvp_data->data.key_size = 2*(keylen + 1); /* utf16 encoding */ + valuelen = utf8s_to_utf16s(value, strlen(value), + (wchar_t *)kvp_data->data.value); + kvp_data->data.value_size = 2*(valuelen + 1); /* utf16 encoding */ + + kvp_data->data.value_type = REG_SZ; /* all our values are strings */ + icmsghdrp->status = HV_S_OK; + +response_done: + icmsghdrp->icflags = ICMSGHDRFLAG_TRANSACTION | ICMSGHDRFLAG_RESPONSE; + + vmbus_sendpacket(channel, recv_buffer, buf_len, re...
2010 Nov 22
1
[PATCH 3/3]: An implementation of HyperV KVP functionality
An implementation of key/value pair feature (KVP) for Linux on HyperV. In this version of the patch I have addressed all the comments I have received to date. I have also included the code for the user-level daemon here for your reference. Signed-off-by: K. Y. Srinivasan <ksrinivasan at novell.com> -------------- next part -------------- An embedded and charset-unspecified text was
2010 Nov 22
1
[PATCH 3/3]: An implementation of HyperV KVP functionality
An implementation of key/value pair feature (KVP) for Linux on HyperV. In this version of the patch I have addressed all the comments I have received to date. I have also included the code for the user-level daemon here for your reference. Signed-off-by: K. Y. Srinivasan <ksrinivasan at novell.com> -------------- next part -------------- An embedded and charset-unspecified text was
2010 Nov 11
4
[PATCH]: An implementation of HyperV KVP functionality
I am enclosing a patch that implements the KVP (Key Value Pair) functionality for Linux guests on HyperV. This functionality allows Microsoft Management stack to query information from the guest. This functionality is implemented in two parts: (a) A kernel component that communicates with the host and (b) A user level daemon that implements data gathering. The attached patch (kvp.patch) implements
2010 Nov 11
4
[PATCH]: An implementation of HyperV KVP functionality
I am enclosing a patch that implements the KVP (Key Value Pair) functionality for Linux guests on HyperV. This functionality allows Microsoft Management stack to query information from the guest. This functionality is implemented in two parts: (a) A kernel component that communicates with the host and (b) A user level daemon that implements data gathering. The attached patch (kvp.patch) implements
2008 Oct 28
14
[PATCH 0/13] ocfs2: xattr bucket API
When the extended attribute namespace grows to a b-tree, the leaf clusters are organized by means of 'buckets'. Each bucket is 4K in size, regardless of blocksize. Thus, a bucket may be made of more than one block. fs/ocfs2/xattr.c has a nice little abstraction to wrap this, struct ocfs2_xattr_bucket. It contains a list of buffer_heads representing these blocks, and there is even an
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...9;: %s"), + error (g, _("no secret with UUID ‘%s’: %s"), uuidstr, err ? err->message : "(none)"); continue; } @@ -622,7 +622,7 @@ for_each_disk (guestfs_h *g, value = virSecretGetValue (sec, &value_size, 0); if (value == NULL) { err = virGetLastError (); - error (g, _("cannot get the value of the secret with UUID '%s': %s"), + error (g, _("cannot get the value of the secret with UUID ‘%s’: %s"),...