search for: get_uuid

Displaying 20 results from an estimated 48 matches for "get_uuid".

2010 Jun 17
4
[PATCH] Improve support for exporting btrfs subvolumes.
...ork. I believe this is ready for inclusion upstream. Thanks, NeilBrown diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index caef5b2..85cd829 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -170,13 +170,16 @@ void auth_unix_gid(FILE *f) #if USE_BLKID static const char *get_uuid_blkdev(char *path) { + /* We set *safe if we know that we need the + * fsid from statfs too. + */ static blkid_cache cache = NULL; struct stat stb; char *devname; blkid_tag_iterate iter; blkid_dev dev; const char *type; - const char *val = NULL; + const char *val, *uuid = NULL; i...
2020 May 13
2
[PATCH v3 1/4] dma-buf: add support for virtio exported objects
...very specific ops to the generic interface is rather awkward, eventually everyone wants that and we end up in a mess. I think the best solution here would be if we create a struct virtio_dma_buf which subclasses dma-buf, add a (hopefully safe) runtime upcasting functions, and then a virtio_dma_buf_get_uuid() function. Just storing the uuid should be doable (assuming this doesn't change during the lifetime of the buffer), so no need for a callback. - for the runtime upcasting the usual approach is to check the ->ops pointer. Which means that would need to be the same for all virtio dma_bufs, wh...
2020 May 13
2
[PATCH v3 1/4] dma-buf: add support for virtio exported objects
...very specific ops to the generic interface is rather awkward, eventually everyone wants that and we end up in a mess. I think the best solution here would be if we create a struct virtio_dma_buf which subclasses dma-buf, add a (hopefully safe) runtime upcasting functions, and then a virtio_dma_buf_get_uuid() function. Just storing the uuid should be doable (assuming this doesn't change during the lifetime of the buffer), so no need for a callback. - for the runtime upcasting the usual approach is to check the ->ops pointer. Which means that would need to be the same for all virtio dma_bufs, wh...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...io_dma_buf_export( > + const struct virtio_dma_buf_export_info *virtio_exp_info) > +{ > + struct dma_buf_export_info exp_info; > + > + if (!virtio_exp_info->ops > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > + || !virtio_exp_info->ops->get_uuid) { > + return ERR_PTR(-EINVAL); > + } > + > + exp_info.exp_name = virtio_exp_info->exp_name; > + exp_info.owner = virtio_exp_info->owner; > + exp_info.ops = &virtio_exp_info->ops->ops; > + exp_info.size = virtio_exp_info->size; > + exp_info.flags = virtio...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...io_dma_buf_export( > + const struct virtio_dma_buf_export_info *virtio_exp_info) > +{ > + struct dma_buf_export_info exp_info; > + > + if (!virtio_exp_info->ops > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > + || !virtio_exp_info->ops->get_uuid) { > + return ERR_PTR(-EINVAL); > + } > + > + exp_info.exp_name = virtio_exp_info->exp_name; > + exp_info.owner = virtio_exp_info->owner; > + exp_info.ops = &virtio_exp_info->ops->ops; > + exp_info.size = virtio_exp_info->size; > + exp_info.flags = virtio...
2010 Jun 01
1
[PATCH] RHEV: OVF must have the same name as the OS UUID
...rtV2V/Target/RHEV.pm index 867923b..9dd9013 100644 --- a/lib/Sys/VirtV2V/Target/RHEV.pm +++ b/lib/Sys/VirtV2V/Target/RHEV.pm @@ -562,7 +562,7 @@ sub create_guest # Generate a creation date my $vmcreation = _format_time(gmtime()); - my $osuuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); + my $vmuuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); my $ovf = new XML::DOM::Parser->parse(<<EOF); <ovf:Envelope @@ -597,7 +597,7 @@ sub create_guest <VmType>1</VmType> <DefaultDisplayType>0</DefaultDisplayType> -...
2012 Jul 27
0
Bug#682979: sample logfile
...parent=trackid=9834f5af41c964e225f24279aefe4e49 [20120727T14:44:24.763Z|debug|vh10|1023 UNIX /var/lib/xcp/xapi|session.login_with_password D:88ab98dc6692|xapi] Attempting to open /var/lib/xcp/xapi [20120727T14:44:24.763Z|debug|vh10|1024 UNIX /var/lib/xcp/xapi||dummytaskhelper] task dispatch:session.get_uuid D:06d59281517c created by task D:88ab98dc6692 [20120727T14:44:24.835Z|debug|vh10|1023 UNIX /var/lib/xcp/xapi|VM.start R:34d8075638bd|audit] VM.start: VM = '5a56791e-9f6a-bae9-f408-3e481c34276a (ds)' [20120727T14:44:24.841Z|debug|vh10|1023 UNIX /var/lib/xcp/xapi|VM.start R:34d8075638bd|xapi]...
2020 Sep 10
0
[PATCH v7 1/3] virtio: add dma-buf support for exported objects
...xp_info) > +{ > + const struct virtio_dma_buf_ops *virtio_ops = > + container_of(exp_info->ops, > + const struct virtio_dma_buf_ops, ops); > + > + if (!exp_info->ops || > + exp_info->ops->attach != &virtio_dma_buf_attach || > + !virtio_ops->get_uuid) { > + return ERR_PTR(-EINVAL); > + } > + > + return dma_buf_export(exp_info); > +} > +EXPORT_SYMBOL(virtio_dma_buf_export); > + > +/** > + * virtio_dma_buf_attach - mandatory attach callback for virtio dma-bufs > + */ > +int virtio_dma_buf_attach(struct dma_buf *d...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...> > > > > + > > > > > > > + if (!virtio_exp_info->ops > > > > > > > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > > > > > > > + || !virtio_exp_info->ops->get_uuid) { > > > > > > > + return ERR_PTR(-EINVAL); > > > > > > > + } > > > > > > > + > > > > > > > + exp_info.exp_name = virtio_exp_info->exp_name; > > > > > > > + exp_info.o...
2010 May 13
1
Non-functional replacement...
This patch just includes the repo name in the subject.
2020 Jun 19
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...> > > + struct dma_buf_export_info exp_info; > > > > + > > > > + if (!virtio_exp_info->ops > > > > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > > > > + || !virtio_exp_info->ops->get_uuid) { > > > > + return ERR_PTR(-EINVAL); > > > > + } > > > > + > > > > + exp_info.exp_name = virtio_exp_info->exp_name; > > > > + exp_info.owner = virtio_exp_info->owner; > > > > + exp_info.ops = &virti...
2010 May 13
0
[PATCH] Replace the HAL calls with udev/systool calls.
...lready be an installation on another device:\n" for device in $devices; do - udi=$(hal-find-by-property --key block.device --string $device) - printf "\t$device ($(basename "$udi"))\n" + local uuid + + get_uuid $device uuid + printf "\t$device ${uuid}\n" done printf "We cannot proceed until either device is removed from the system\n" printf "or until the HostVG volume group is removed.\n" @@ -260,40 +232,19 @@ manual_input...
2010 Jun 01
1
[PATCH] RHEV: Pad disk sizes up to a multiple of 1024 bytes
...ltiple of 512 in size. Additionally, SIZE in + # the disk meta file has units of kilobytes. To ensure everything matches up + # exactly, we will pad to to a 1024 byte boundary. + $self->{outsize} = ceil($insize/1024) * 1024; my $imageuuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); my $voluuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); @@ -206,7 +210,7 @@ sub _get_size { my $self = shift; - return $self->{size}; + return $self->{outsize}; } sub _get_imageuuid @@ -256,6 +260,7 @@ sub open my $self = shift; my $now = $sel...
2014 Apr 13
2
Adding an external library to Xapian
...@@ -94,6 +98,18 @@ LOGCALL_DTOR(API, "Database"); } +// LOG Function +void +Database::log(const std::string &query) { + cout << "In Database::log" << endl; + // For now usind DB's UUID to record logs + string logname = "../logs/" + this->get_uuid(); + cout << "Log file: " << logname << "Query " << query << endl; + std::ofstream logfile(logname.c_str(), ios::out | ios::app); + logfile << query << endl; + logfile.close(); +} + void Database::reopen() { diff -ur xapian-core-1...
2010 May 14
3
Replacement patch...
This one incorporates feedback from mburns and apevec to ensure that all multipath devices are excluded in the list of available drives. Only drives with an identified bus are included in the list now.
2014 Apr 13
2
Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following it the error that occurred: http://pastebin.com/cVJrjUZX On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com> > wrote: > > > A linker error is encountered even after following the above
2012 Jun 20
2
"No text console available" when trying to get the console of a just created VM from a template on XCP
...ckid=9834f5af41c964e225f24279aefe4e49 [20120620T03:11:53.275Z|debug|ubuntu-xcp|446 UNIX /var/lib/xcp/xapi|session.login_with_password D:1de8b836546f|xapi] Attempting to open /var/lib/xcp/xapi [20120620T03:11:53.275Z|debug|ubuntu-xcp|447 UNIX /var/lib/xcp/xapi||dummytaskhelper] task dispatch:session.get_uuid D:e9f7e5731bf5 created by task D:1de8b836546f [20120620T03:11:53.280Z|debug|ubuntu-xcp|446 UNIX /var/lib/xcp/xapi||xapi] Raised at cli_operations.ml:2230.11-28 -> xapi_cli.ml:119.18-58 -> pervasiveext.ml:22.2-9 [20120620T03:11:53.281Z| info|ubuntu-xcp|446 UNIX /var/lib/xcp/xapi|session.logout...
2011 Oct 27
0
XenServer 6: Is it a bug? - NO output of: xe vm-import filename=Solaris10-extended-HVM-template
...er=true auth_user_sid= parent=trackid=9834f5af41c964e225f24279aefe4e49 [20111027T21:04:27.285Z|debug|xs6db01|925 unix-RPC|session.login_with_password D:c4c37c814f6b|xapi] Attempting to open /var/xapi/xapi [20111027T21:04:27.290Z|debug|xs6db01|926 unix-RPC||dummytaskhelper] task dispatch:session.get_uuid D:ede269474bdc created by task D:c4c37c814f6b [20111027T21:04:27.366Z| info|xs6db01|925 unix-RPC|task.create D:2df853a1228e|taskhelper] task VM import R:e72e9692d07b (uuid:dec0a145-d8ec-26c4-3635-121627d30cd7) created (trackid=13f38cbcea42554985134ffbb1128bf5) by task D:2df853a1228e [20111027T21...
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...xt *hal_ctx; + int ret; + + // Get our HAL Context or die trying + hal_ctx = get_hal_ctx(); + if (!hal_ctx) + throw runtime_error("Unable to get HAL Context Structure."); + + try { + NICWrapper::fillNICInfo(this->nics, agent, hal_ctx); + + // Host UUID + char *uuid_c = get_uuid(hal_ctx); + string uuid(uuid_c); + management_object->set_uuid(uuid); + + // Hostname + char hostname_c[HOST_NAME_MAX]; + ret = gethostname(hostname_c, sizeof(hostname_c)); + if (ret != 0) + throw runtime_error("Unable to get hostname"); + string hostname(host...
2012 May 23
2
Bug#674088: xcp-xapi: vbd-plug to dom0 does not creates /dev/xvd* devices in dom0
...=trackid=9834f5af41c964e225f24279aefe4e49 [20120523T00:23:28.850Z|debug|lab-xh3|1045 UNIX /var/lib/xcp/xapi|session.login_with_password D:5d579e77454e|xapi] Attempting to open /var/lib/xcp/xapi [20120523T00:23:28.851Z|debug|lab-xh3|1046 UNIX /var/lib/xcp/xapi||dummytaskhelper] task dispatch:session.get_uuid D:62a39592557b created by task D:5d579e77454e [20120523T00:23:28.857Z|debug|lab-xh3|1045 UNIX /var/lib/xcp/xapi|VBD.plug R:4db77abb7c5d|audit] VBD.plug: VBD = 'b2e8f7b3-34c4-fe9a-486e-6551b8ba4165' [20120523T00:23:28.859Z|debug|lab-xh3|1045 UNIX /var/lib/xcp/xapi|VBD.plug R:4db77abb7c5d|loc...