search for: find_root

Displaying 3 results from an estimated 3 matches for "find_root".

Did you mean: find_roots
2005 Dec 15
2
Error: [Object]Controller: missing default helper path [controller]_helper
...for the object Event, which at this point is very simple and reads as: class EventController < ApplicationController layout ''standard'' before_filter :authorize # method handle used for handling adding new events to the system def add @locations = Location.find_roots @arts = Art.find_all @event = Event.new( @params[:event] ) @event.user = @session[:user] if @request.post? and @event.save redirect_to :action=>:view, :id=>@event.id else @event.errors.each_full do |msg| logger.error( "error while saving...
2010 Oct 30
0
[PATCH] Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) - generated by Coccinelle
...ERR_CAST(rb_node); goto out; } em = rb_entry(rb_node, struct extent_map, rb_node); diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index ebe46c6..1bc7a0a 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -380,7 +380,7 @@ static struct dentry *get_default_root(struct super_block *sb, find_root: new_root = btrfs_read_fs_root_no_name(root->fs_info, &location); if (IS_ERR(new_root)) - return ERR_PTR(PTR_ERR(new_root)); + return ERR_CAST(new_root); if (btrfs_root_refs(&new_root->root_item) == 0) return ERR_PTR(-ENOENT); -- Chris Samuel : http://www.csamuel.o...
2006 May 31
1
Help enhancing acts_as_nested_set
...nt_column]}" end def parent_column() "#{configuration[:parent_column]}" end EOV def find_all self.find(:all, :conditions => "#{left_col_name} > 0", :order => "#{left_col_name} ASC") end def find_roots self.find(:all, :conditions => "#{parent_column} = 0 AND #{left_col_name} > 0", :order => "#{left_col_name} ASC") end def root_count self.find(:all, :conditions => "#{parent_column} = 0 AND #{left_col_name} > 0&qu...