search for: _show

Displaying 20 results from an estimated 65 matches for "_show".

Did you mean: show
2009 May 29
1
[PATCH server] fixed UI update bug -- ignore task_types when it doesn't exist
Signed-off-by: Scott Seago <sseago at redhat.com> --- src/app/views/task/_show.rhtml | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/app/views/task/_show.rhtml b/src/app/views/task/_show.rhtml index f4e001d..ff7d434 100644 --- a/src/app/views/task/_show.rhtml +++ b/src/app/views/task/_show.rhtml @@ -75,7 +75,9 @@ <img src="im...
2011 May 17
1
rails render_to_string problem
...e_attributes!(params[:user]) redirect_to @user, :status => 202, :text => render_to_string(:partial => "users/show", :type => "json", :locals => {:user => @user}) #notice, that redirect_to was reinitialized and :text is a parameter for response_body end _show.tokamak user { id user.id email user.email username user.username } spec file it "should NOT update user username" do username = @user.username put ''update'', :id => @user.id, :user => {:username => username +"abc"}, :format => :jso...
2008 Dec 25
0
[PATCH 1/4] dom0 linux: Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.
...Yuji Shimada <shimada-yxb@necst.nec.co.jp> diff -r 618fc299e2f1 -r 4769a6db78f5 drivers/acpi/pci_root.c --- a/drivers/acpi/pci_root.c Thu Dec 18 11:51:36 2008 +0000 +++ b/drivers/acpi/pci_root.c Thu Dec 25 10:37:52 2008 +0900 @@ -151,6 +151,36 @@ return AE_OK; } +ssize_t +acpi_device_seg_show(struct acpi_device *acpi_dev, char *buf) +{ + struct list_head *entry; + + list_for_each(entry, &acpi_pci_roots) { + struct acpi_pci_root *root; + root = list_entry(entry, struct acpi_pci_root, node); + if (root->device == acpi_dev) + return sprintf(buf, "%04x\n", root->id...
2014 Mar 19
5
[PATCH] virtio-blk: make the queue depth configurable
...b() */ #define module_param_call(name, set, get, arg, perm) \ diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 30b2ebee6439..f517e6e488c8 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -71,7 +71,8 @@ struct attribute_group { */ #define __ATTR(_name, _mode, _show, _store) { \ - .attr = {.name = __stringify(_name), .mode = _mode }, \ + .attr = {.name = __stringify(_name), \ + .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ .show = _show, \ .store = _store, \ }
2014 Mar 19
5
[PATCH] virtio-blk: make the queue depth configurable
...b() */ #define module_param_call(name, set, get, arg, perm) \ diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 30b2ebee6439..f517e6e488c8 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -71,7 +71,8 @@ struct attribute_group { */ #define __ATTR(_name, _mode, _show, _store) { \ - .attr = {.name = __stringify(_name), .mode = _mode }, \ + .attr = {.name = __stringify(_name), \ + .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ .show = _show, \ .store = _store, \ }
2006 Apr 04
7
Not getting the whole RJS-based partial rendering concept ...
I have been trying all kinds of different ways to produce what I think should be a simple effect, but have not had any luck yet and apparently I am not following the general idea... What I am trying to accomplish is the following (part 1 works and part 2 does not): 1. One of my views has a link_to_remote which updates a div container with a table of data my example is <div
2009 May 21
1
[PATCH server] Updated look and feel for empty grid views
...rhtml | 4 ++-- src/app/views/smart_pools/show_hosts.rhtml | 9 ++++----- src/app/views/smart_pools/show_pools.rhtml | 9 ++++----- src/app/views/smart_pools/show_storage.rhtml | 9 ++++----- src/app/views/smart_pools/show_vms.rhtml | 9 ++++----- src/app/views/task/_show.rhtml | 19 +++++++++++-------- src/app/views/user/_show.rhtml | 7 ++++--- src/public/images/no-grid-items.png | Bin 15004 -> 0 bytes src/public/stylesheets/components.css | 25 ++++++++++++++++++++++--- 14 files changed, 87 insertions(+), 81...
2014 Sep 09
2
mutex
...cess will get stuck, it will return if we kill dd process. We have some static variables (eg, current_rng, data_avail, etc) in hw_random/core.c, they are protected by rng_mutex. I try to workaround this issue by undelay(100) after mutex_unlock() in rng_dev_read(). This gives chance for hwrng_attr_*_show() to get mutex. This patch also contains some cleanup, moving some code out of mutex protection. Do you have some suggestion? Thanks. diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index aa30a25..fa69020 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/h...
2014 Sep 09
2
mutex
...cess will get stuck, it will return if we kill dd process. We have some static variables (eg, current_rng, data_avail, etc) in hw_random/core.c, they are protected by rng_mutex. I try to workaround this issue by undelay(100) after mutex_unlock() in rng_dev_read(). This gives chance for hwrng_attr_*_show() to get mutex. This patch also contains some cleanup, moving some code out of mutex protection. Do you have some suggestion? Thanks. diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index aa30a25..fa69020 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/h...
2006 May 01
1
Show/Hide with AJAX
...View: <%= link_to_remote "Show/Hide", :update => "details", :url => { :action => "show", :id => leif } %> <p id="details"></p> Action: def show @leif = Leif.find(params[:id]) render_partial ''show'' end _show.rhtml: <% for column in Leif.content_columns %> <p> <b><%= column.human_name %>:</b> <%=h @leif.send(column.name) %> </p> <% end %> Any tips or ideas would be appreciated -- Posted via http://www.ruby-forum.com/.
2012 Apr 23
0
doubt on image_tag
Hello, I am very new to ruby on rails and I am facing little problem with image_tag. I have two controller product and items. In product view, I have a partial called _show.html.erb. And in items view, i call index of item to display all products. The problem is, when user clicks on the image_tag of the items view, i want to call partial of product view i.e _show.html.erb. Please help me :) thanks, derp -- Posted via http://www.ruby-forum.com/. -- You received t...
2009 Jun 22
2
Patch series for Cloud Vm Actions
The following two patches should be applied in the order: * [PATCH server] Add svc_vm_actions method to VmService. * [PATCH server] Cloud UI layer to initiate actions on vms. The service layer patch should work fine on its own (and not break anything), but cloud patch relies on service being there.
2011 Aug 13
3
How to make an AJAX call to different domains in Ruby on Rails 3.0
...l the way from one domain to sub domain and even action gets triggered but, I can not get the response back to the main domain. So, is there any way to send a callback to main domain. I just want to reflect changes there at the form which is inside div_contentdiv and want to replace with content of _show.html.erb which I have on my sub domain. Many Thanks, Surya :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe...
2020 Apr 14
0
[PATCH v2 08/33] iommu: Move default domain allocation to iommu_probe_device()
...ch_device(struct iommu_domain *domain, + struct device *dev); +static int __iommu_attach_group(struct iommu_domain *domain, + struct iommu_group *group); +static void __iommu_detach_group(struct iommu_domain *domain, + struct iommu_group *group); + #define IOMMU_GROUP_ATTR(_name, _mode, _show, _store) \ struct iommu_group_attribute iommu_group_attr_##_name = \ __ATTR(_name, _mode, _show, _store) @@ -221,10 +231,29 @@ int iommu_probe_device(struct device *dev) goto err_free_dev_param; } - if (ops->probe_device) + if (ops->probe_device) { + struct iommu_group *group; +...
2009 Jun 29
2
One more fix
This resend includes the rebase, but fixes a problem I just noticed with nil/empty checks.
2014 Mar 19
0
[PATCH] virtio-blk: make the queue depth configurable
...perm) \ > diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h > index 30b2ebee6439..f517e6e488c8 100644 > --- a/include/linux/sysfs.h > +++ b/include/linux/sysfs.h > @@ -71,7 +71,8 @@ struct attribute_group { > */ > > #define __ATTR(_name, _mode, _show, _store) { \ > - .attr = {.name = __stringify(_name), .mode = _mode }, \ > + .attr = {.name = __stringify(_name), \ > + .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ > .show = _...
2009 Jun 29
2
Resend of Cloud UI/service patches
This is a resend of the 2-patch series from a week or so ago, needed to be rebased due to some commits on next
2018 May 23
3
[PATCH] block drivers/block: Use octal not symbolic permissions
...ock/xen-blkfront.c | 7 ++-- 25 files changed, 156 insertions(+), 164 deletions(-) diff --git a/block/blk-integrity.c b/block/blk-integrity.c index feb30570eaf5..6121611e1316 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c @@ -333,34 +333,34 @@ static ssize_t integrity_device_show(struct blk_integrity *bi, char *page) } static struct integrity_sysfs_entry integrity_format_entry = { - .attr = { .name = "format", .mode = S_IRUGO }, + .attr = { .name = "format", .mode = 0444 }, .show = integrity_format_show, }; static struct integrity_sysfs_entry i...
2018 May 23
3
[PATCH] block drivers/block: Use octal not symbolic permissions
...ock/xen-blkfront.c | 7 ++-- 25 files changed, 156 insertions(+), 164 deletions(-) diff --git a/block/blk-integrity.c b/block/blk-integrity.c index feb30570eaf5..6121611e1316 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c @@ -333,34 +333,34 @@ static ssize_t integrity_device_show(struct blk_integrity *bi, char *page) } static struct integrity_sysfs_entry integrity_format_entry = { - .attr = { .name = "format", .mode = S_IRUGO }, + .attr = { .name = "format", .mode = 0444 }, .show = integrity_format_show, }; static struct integrity_sysfs_entry i...
2014 Sep 10
2
RFC virtio-rng: fail to read sysfs of a busy device
...ean we shouldn't fix the issue here...) > We have some static variables (eg, current_rng, data_avail, etc) in hw_random/core.c, > they are protected by rng_mutex. I try to workaround this issue by undelay(100) > after mutex_unlock() in rng_dev_read(). This gives chance for hwrng_attr_*_show() > to get mutex. > > This patch also contains some cleanup, moving some code out of mutex > protection. > > Do you have some suggestion? Thanks. > > > diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c > index aa30a25..fa69020 100644 > -...