search for: target_id

Displaying 20 results from an estimated 42 matches for "target_id".

2009 Aug 11
1
[PATCH server] remove appliance bits
...00..0000000 --- a/installer/modules/ovirt/files/ovirt-storage +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/bash -# -# ovirt-storage Set up storage for oVirt Server Appliance -# -# chkconfig: 3 96 4 -# description: oVirt Appliance Storage Services -# - -# Source functions library -. /etc/init.d/functions -TARGET_ID=32101 - -prog="ovirt-storage" -num_iscsi_luns=5 - -start() { - echo -n "Starting $prog: " - - # Set up the fake iscsi target - tgtadm --lld iscsi --op new --mode target --tid $TARGET_ID \ - -T ovirtpriv:storage - - # - # Now associate them to the LVs - #...
2010 Dec 06
7
[PATCH 1/8] staging: hv: Convert camel case struct fields in vstorage.h to lowercase
...Device->PathId = vstorPacket->StorageChannelProperties.PathId; - storDevice->TargetId = vstorPacket->StorageChannelProperties.TargetId; + storDevice->PathId = vstorPacket->storage_channel_properties.path_id; + storDevice->TargetId + = vstorPacket->storage_channel_properties.target_id; DPRINT_DBG(STORVSC, "channel flag 0x%x, max xfer len 0x%x", - vstorPacket->StorageChannelProperties.Flags, - vstorPacket->StorageChannelProperties.MaxTransferBytes); + vstorPacket->storage_channel_properties.flags, + vstorPacket->storage_channel_properties...
2010 Dec 06
7
[PATCH 1/8] staging: hv: Convert camel case struct fields in vstorage.h to lowercase
...Device->PathId = vstorPacket->StorageChannelProperties.PathId; - storDevice->TargetId = vstorPacket->StorageChannelProperties.TargetId; + storDevice->PathId = vstorPacket->storage_channel_properties.path_id; + storDevice->TargetId + = vstorPacket->storage_channel_properties.target_id; DPRINT_DBG(STORVSC, "channel flag 0x%x, max xfer len 0x%x", - vstorPacket->StorageChannelProperties.Flags, - vstorPacket->StorageChannelProperties.MaxTransferBytes); + vstorPacket->storage_channel_properties.flags, + vstorPacket->storage_channel_properties...
2006 Feb 08
1
render_component vs. render_component_as_string?
I''m calling render_component in a helper. render_component :controller => target_controller, :action => "show", :id => target_id This works fine, except that passing the id in :params didn''t work and I had to pass in an explicit :id parameter to get the target controller to override the id - is that documented anywhere? That''s not my question. My question is - if I replace this with render_component_as_st...
2008 May 07
1
Assigning to the foreign key on a belongs_to association
...e_record/associations.rb @@ -1094,6 +1094,13 @@ module ActiveRecord instance_variable_set(ivar, new_value.nil? ? nil : association) end + if association_proxy_class == BelongsToAssociation + define_method("#{reflection.primary_key_name}=") do | target_id| + instance_variable_set(ivar, nil) + self["#{reflection.primary_key_name}"] = target_id + end + end + define_method("set_#{reflection.name}_target") do | target| return if target.nil? and association_proxy_cla...
2006 Jun 09
0
bizarre problem
Hello, I have following code in a helper: def custom_ajax(link, options) target = "target_" + options[:target_id] loading = "loading_" + options[:target_id] visible = "visible_" + options[:target_id] #options[:url] = {:inline => 1 }.merge(options[:url]) test = {:inline => 1 }.merge(options[:url]) link_to_remote( link, { :update => target,...
2006 Mar 12
0
NameError when trying to combine Recipe 14 (rich HABTM) & Rec. 10 (self-ref HABTM):
...del self-referential relations between people, where the relation has attached data. John ''works for'' Bob Problem: '':through'' doesn''t work, and generates a NameError. => the models : Person (attr: name) Relation (attr: source_id, target_id) (more details below) ex: John ''works for'' Bob 1> jsmith = Person.create(:name => ''John Smith'') 2> jdoe = Person.create(:name => ''John Doe'') 3> jsmith.to_relations.create(:name => "works_for", :target...
2007 Oct 27
4
Mongrel 1.0.2 on Ubuntu Feisty
...he same problem, it seems that `gem install mongrel` will install version 1.0.2 (which is rather strange since there isn''t such a version on Rubyforge, it''s either 1.0.1 or 1.0.3) which is broken. I found a typo in configurator.rb on line 63 where instead of target_gid it was just target_id. Forcing version 1.0.3 fixes the problem. However, I''m wondering why v. 1.0.2 gets installed. Any ideas? -- Andrei Maxim http://andreimaxim.ro -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/2007102...
2006 Jul 20
2
a rails model question
Hi all, I am a newbie in ruby/rails. I have a question about my database model: table1: entities (name, description, author_id ...) table2: relations (source_id, target_id, relation_type) (it describes the relations between 2 entities and the relation type) How can I define models using rails, or do I need to redefine my database schema? thank you -- Posted via http://www.ruby-forum.com/.
2013 Sep 30
2
[PATCH v2] core: Check size of ldlinux.sys at building time.
...installed on the 0-64k range. +## +## 0-64k range: +## [0](bootsector)[512](ldlinux.sys)[65536 - 2 * ADV_SIZE](2 copies of ADV)[65536] + +use File::stat; +use constant DEBUG => (1); + +# CWD is 'bios/core' when this script gets executed. +$file = '../../libinstaller/setadv.h'; +$target_id = '#define ADV_SIZE'; + +sub get_ADV_SIZE { + my $data, $line; + my $adv_size = -1; + + open $data, "<", $file or die "Cannot open $file\n"; + while ( $line = <$data> ) { + my $id, $value; + + chomp($line); + ($id, $value) = split('\t', $line...
2011 Jun 29
38
[PATCH 00/40] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Cleanup the reference counting mess for both stor and net devices. 2) Handle all block devices using the storvsc driver. 3) Accomodate some host side scsi emulation bugs. 4) In case of scsi errors off-line the device. Regads, K. Y
2011 Jun 29
38
[PATCH 00/40] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Cleanup the reference counting mess for both stor and net devices. 2) Handle all block devices using the storvsc driver. 3) Accomodate some host side scsi emulation bugs. 4) In case of scsi errors off-line the device. Regads, K. Y
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...e *request_pool; spinlock_t lock; struct gendisk *gd; @@ -298,7 +298,7 @@ static int blkvsc_probe(struct device *device) goto Cleanup; } - blkdev->device_ctx = device_obj; + blkdev->device_obj = device_obj; /* this identified the device 0 or 1 */ blkdev->target = device_info.target_id; /* this identified the ide ctrl 0 or 1 */ @@ -367,7 +367,7 @@ static int blkvsc_probe(struct device *device) blkdev->gd->first_minor = 0; blkdev->gd->fops = &block_ops; blkdev->gd->private_data = blkdev; - blkdev->gd->driverfs_dev = &(blkdev->device_ctx-...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...e *request_pool; spinlock_t lock; struct gendisk *gd; @@ -298,7 +298,7 @@ static int blkvsc_probe(struct device *device) goto Cleanup; } - blkdev->device_ctx = device_obj; + blkdev->device_obj = device_obj; /* this identified the device 0 or 1 */ blkdev->target = device_info.target_id; /* this identified the ide ctrl 0 or 1 */ @@ -367,7 +367,7 @@ static int blkvsc_probe(struct device *device) blkdev->gd->first_minor = 0; blkdev->gd->fops = &block_ops; blkdev->gd->private_data = blkdev; - blkdev->gd->driverfs_dev = &(blkdev->device_ctx-...
2011 Jul 15
122
[PATCH 0000/0117] Staging: hv: Driver cleanup
Further cleanup of the hv drivers. Back in June I had sent two patch sets to address these issues. I have addressed the comments I got from the community on my earlier patches here: 1) Implement code for autoloading the vmbus drivers without using PCI or DMI signatures. I have implemented this based on Greg's feedback on my earlier implementation. 2) Cleanup error handling across
2011 Jul 15
122
[PATCH 0000/0117] Staging: hv: Driver cleanup
Further cleanup of the hv drivers. Back in June I had sent two patch sets to address these issues. I have addressed the comments I got from the community on my earlier patches here: 1) Implement code for autoloading the vmbus drivers without using PCI or DMI signatures. I have implemented this based on Greg's feedback on my earlier implementation. 2) Cleanup error handling across
2007 Sep 20
0
Regarding Inp place editor
...text field but i am unable to put this feature in inplace editor. Iam putting the code also text editing <input id="test" name="test" type="text" value=""> <%= observe_field ''test'', :frequency => 0.5, :update => ''target_id'', :url => { :controller => ''test'', :action=> ''update'' }, :with => "''test='' + escape(value)" %> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the...
2011 Sep 08
25
[PATCH 0000/0025] Staging: hv: Driver cleanup
Address Greg's VmBus audit comments: 1) Leverage driver_data field in struct hv_vmbus_device_id to simplify driver code. 2) Make the util driver conform to the Linux Driver Model. 3) Get rid of the ext field in struct hv_device by using the driver specific data functionality. 4) Other general cleanup. Regards, K. Y
2011 Sep 08
25
[PATCH 0000/0025] Staging: hv: Driver cleanup
Address Greg's VmBus audit comments: 1) Leverage driver_data field in struct hv_vmbus_device_id to simplify driver code. 2) Make the util driver conform to the Linux Driver Model. 3) Get rid of the ext field in struct hv_device by using the driver specific data functionality. 4) Other general cleanup. Regards, K. Y
2011 Apr 04
18
[PATCH 00/22] Staging: hv: Cleanup storage drivers - Phase IV
More cleanup. In this patch-set we deal with the following issues: 1) While a Linux guest on Hyper-V can be assigned removable media devices (DVD, floppy etc), these devices are not handled by the Hyper-V block driver. So, we cleanup all the dead code dealing with removable media devices. 2) There were multiple functions to retrieve information about the device. Since much of